Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] Can't close MediaStream (Camera Indicator stll active) #6623

Open
xxidbr9 opened this issue Apr 3, 2023 · 2 comments
Open

[bug] Can't close MediaStream (Camera Indicator stll active) #6623

xxidbr9 opened this issue Apr 3, 2023 · 2 comments
Labels
status: needs triage This issue needs to triage, applied to new issues type: bug

Comments

@xxidbr9
Copy link

xxidbr9 commented Apr 3, 2023

Describe the bug

The camera Indicator is still active even camera stream is stop(),

Example
Here is a simple example for reproducing the bug I found,
Repo Link: https://github.com/xxidbr9/camera-issue-tauri

I have mac and windows device and all of the device is facing the same issue, the problem is only when I run it on Tauri, but I have no problem when running it as a normal Web app

Reproduction

  1. Clone the repo
  2. and try web and Tauri version to compare

Expected behavior

Will turn off camera indicator when use

// const stream = navigator.mediaDevices.getUserMedia({ video: true, audio: true })
stream.getTracks().forEach(track => track.stop());

Platform and versions

› OS: Mac OS 13.2.1 X64
  › Node.js: 16.19.0
  › npm: 8.19.3
  › pnpm: 8.1.0
  › yarn: 1.22.19
  › rustup: 1.25.1
  › rustc: 1.66.1
  › cargo: 1.66.1
  › Rust toolchain: stable-aarch64-apple-darwin

Stack trace

No response

Additional context

No response

@xxidbr9 xxidbr9 added status: needs triage This issue needs to triage, applied to new issues type: bug labels Apr 3, 2023
@learncodingforweb
Copy link

i am not able to see any mediadevices under navigator running tauri app in ubuntu22.04. so unable to open usb camera using tauri app.

@FabianLars
Copy link
Member

@learncodingforweb webrtc is not available in webkitgtk yet: #5370 / tauri-apps/wry#85 and therefore your issue is unrelated to this one :)

@github-project-automation github-project-automation bot moved this to 📬Proposal in Roadmap Sep 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: needs triage This issue needs to triage, applied to new issues type: bug
Projects
Status: 📬Proposal
Development

No branches or pull requests

3 participants