Fix race condition on camera
This commit is contained in:
parent
0cc7fcb945
commit
ae353386e1
|
@ -76,12 +76,6 @@ class Convulse {
|
|||
vid.addEventListener("change", e => this.inputSelect(e))
|
||||
this.inputSelect()
|
||||
|
||||
navigator.mediaDevices.getUserMedia({video: true, audio: true})
|
||||
.then(media => this.gotUserMedia(media))
|
||||
.catch(err => {
|
||||
toast("Couldn't open camera!")
|
||||
})
|
||||
|
||||
navigator.mediaDevices.getDisplayMedia({video: {cursor: "always"}})
|
||||
.then(media => {
|
||||
document.querySelector("#hello").classList.add("hidden")
|
||||
|
|
Loading…
Reference in New Issue