Add video attributs
This commit is contained in:
parent
7df902df52
commit
866d89eb09
@ -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;
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user