Stop video when frame selected
Signed-off-by: Justin Georgi <justin.georgi@gmail.com>
This commit is contained in:
@@ -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") {
|
||||
|
||||
Reference in New Issue
Block a user