Browse Source

Merge 9fed17d2ce into ad79aa45cf

pull/1159/merge
ngrandjean 5 years ago
committed by GitHub
parent
commit
1344549a13
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      web_widget_image_webcam/static/src/js/webcam.js

6
web_widget_image_webcam/static/src/js/webcam.js

@ -139,7 +139,11 @@ var Webcam = {
})
.then( function(stream) {
// got access, attach stream to video
video.src = window.URL.createObjectURL( stream ) || stream;
try {
video.srcObject = stream;
} catch (error) {
video.src = window.URL.createObjectURL(stream) || stream;
}
self.stream = stream;
self.loaded = true;
self.live = true;

Loading…
Cancel
Save