Add video attributs
This commit is contained in:
@@ -190,6 +190,9 @@ async function get_webcam(options){
|
||||
printButton.removeAttribute("disabled","");
|
||||
current_stream = stream;
|
||||
video.srcObject = stream;
|
||||
video.setAttribute('autoplay', '');
|
||||
video.setAttribute('muted', '');
|
||||
video.setAttribute('playsinline', '')
|
||||
video.play();
|
||||
return true;
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user