Better camera access for non-cordova deployments #116

Merged
jgeorgi merged 4 commits from msv-browser-vid into main 2024-03-05 00:03:29 +00:00
Showing only changes of commit b9d1b5c5ff - Show all commits

View File

@@ -546,6 +546,7 @@
getImage (searchImage) {
let loadImage = new Promise(resolve => {
if (this.videoAvailable) {
this.cameraStream.getTracks().forEach( t => t.stop())
this.videoAvailable = false
resolve(searchImage)
} else if (this.isCordova && this.imageLoadMode == "camera") {