The webcam I'm using (Microsoft LifeCam 3000) doesn't work with Paper Programs. The "onloadedmetadata" event never get triggered. This problem unfortunately only occurs with Chrome (65.0.3325.181), other browsers work fine. The cause seems to be how getUserMedia is called:
If I change it to a specific resolution, my webcam supports it works. I think this is a bug with Chrome or the webcam driver.
video: {
width: 1280,
height: 720
}
I searched for a more generic solution which always picks the best available resolution and found this snippet on stack overflow. This also works with my webcam.
The webcam I'm using (Microsoft LifeCam 3000) doesn't work with Paper Programs. The "onloadedmetadata" event never get triggered. This problem unfortunately only occurs with Chrome (65.0.3325.181), other browsers work fine. The cause seems to be how getUserMedia is called:
https://github.com/janpaul123/paperprograms/blob/2f49491595619a044f98c7517d67557f95104dde/client/camera/CameraVideo.js#L19-L26
If I change it to a specific resolution, my webcam supports it works. I think this is a bug with Chrome or the webcam driver.
I searched for a more generic solution which always picks the best available resolution and found this snippet on stack overflow. This also works with my webcam.
https://stackoverflow.com/questions/27420581/get-maximum-video-resolution-with-getusermedia#answer-27444179
Is this issue specific to my webcam or has anyone experienced something similar?