tauri icon indicating copy to clipboard operation
tauri copied to clipboard

navigator.mediaDevices is undefined

Open MrChaker opened this issue 3 years ago • 2 comments

Describe the bug

I want to access camera / other media devices , but navigator.mediaDevices is no longer working on build ( I said no longer because it used to work normally in the past )

Reproduction

No response

Expected behavior

No response

Platform and versions

Environment › OS: Ubuntu 22.04 X64 › Node.js: 16.17.1 › npm: 8.19.1 › pnpm: Not installed! › yarn: 1.22.19 › rustup: 1.25.1 › rustc: 1.63.0 › cargo: 1.63.0 › Rust toolchain: stable-x86_64-unknown-linux-gnu

Packages › @tauri-apps/cli [NPM]: 1.1.1 › @tauri-apps/api [NPM]: 1.1.0 › tauri [RUST]: 1.1.1, › tauri-build [RUST]: 1.1.1, › tao [RUST]: 0.14.0, › wry [RUST]: 0.21.1,

App › build-type: bundle › CSP: unset › distDir: ../dist › devPath: http://localhost:3000/ › framework: React

Stack trace

No response

Additional context

No response

MrChaker avatar Oct 07 '22 22:10 MrChaker

~~Please include the full output of tauri info~~ Thanks

FabianLars avatar Oct 07 '22 22:10 FabianLars

Probably related to https://github.com/tauri-apps/wry/issues/85 https://github.com/tauri-apps/wry/issues/85#issuecomment-1246604440

Elandig avatar Oct 11 '22 09:10 Elandig