Staff Software Engineer LinkedIn GitHub StackOverflow Skills Web Frontend: JavaScript/TypeScript, React, Redux, HTML, CSS Web Video Playback: In-depth knowledge of corss device/OS compatibility, DASH, HLS Work Experience
12/1/2022Multi camera cases Even cheap phones can have multiple cameras, but the default camera for getUserMedia is probably not the "primary", and may lack focus feature, which is important for scanning barcodes. const changeCamera = (video, {index} = {}) => { const devices = (await navigator.mediaDevices.enumerateDevices()).filter( device => device.deviceId && device.kind === 'videoinput' ) if (video.srcObject && devices.length === 1) { return
1/23/2022or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up