react-qr-reader
react-qr-reader copied to clipboard
Navigator.getUserMedia is undefined
first, i don't write english well .. Sorry ;
Navigator = {
appCodeName: "Mozilla" appName: "Netscape" appVersion: "5.0 (Linux; Android 9; SM-G977N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.111 Mobile Safari/537.36" connection: NetworkInformation {onchange: null, effectiveType: "4g", rtt: 150, downlink: 1.65, saveData: false, …} cookieEnabled: true doNotTrack: null geolocation: Geolocation {} getUserMedia: undefined hardwareConcurrency: 8 language: "ko-KR" languages: (4) ["ko-KR", "ko", "en-US", "en"] maxTouchPoints: 1 mediaCapabilities: MediaCapabilities {} mediaSession: MediaSession {metadata: null, playbackState: "none"} mimeTypes: MimeTypeArray {length: 0} onLine: true permissions: Permissions {} platform: "Linux armv8l" plugins: PluginArray {length: 0} product: "Gecko" productSub: "20030107" userActivation: UserActivation {hasBeenActive: false, isActive: false} userAgent: "Mozilla/5.0 (Linux; Android 9; SM-G977N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.111 Mobile Safari/537.36" vendor: "Google Inc." vendorSub: "" webkitPersistentStorage: DeprecatedStorageQuota {} webkitTemporaryStorage: DeprecatedStorageQuota {} proto: Navigator
}
look up side ...
getUserMedia is undefined..
So
navigator.getUserMedia = navigator.getUserMedia || navigator.webkitGetUserMedia || navigator.mozGetUserMedia || navigator.oGetUserMedia || navigator.msGetUserMedia;
is not working And polyfill is also not working
this problem is happen only mobile web! qr-reader is work nomally in pc chrome
Why is this happening?
I'll write down the environment below
Mozilla/5.0 (Linux; Android 9; SM-G977N) Chrome/76.0.3809.111 Mobile Safari/537.36