samdutton / simpl

Simplest possible examples of HTML, CSS and Javascript:
https://simpl.info
Apache License 2.0
5.19k stars 1.64k forks source link

Multiple Webcam Demo is not working on Chrome #83

Closed ghost closed 8 years ago

ghost commented 8 years ago

I refer to this demo of the repo. In Chrome 53, two webcams are found, but as soon as I switch to the second webcam, the video-playback-canvas turns black. When I attach the webcams one by the other, they both work. When I connect both, the second never loads the live-image for preview. As the descriptions says: min Chrome 30, it might be that something has changed in the getSource API? Can anyone reproduce this problem?

When the source is changed, JS throws: Uncaught TypeError: window.stream.stop is not a function GET https://simpl.info/getusermedia/sources/null

sys: Win7, Chrome 53.0.2785.143

EDIT: Solution here

samdutton commented 8 years ago

Thanks Mortimer! I need to update this.

On 19 October 2016 at 02:05, Mortimer Neuß notifications@github.com wrote:

I refer to this demo https://simpl.info/getusermedia/sources/ of the repo. In Chrome 53, two webcams are found, but as soon as I switch to the second webcam, the video-playback-canvas turns black. When I attach the webcams one by the other, they both work. When I connect both, the second never loads the live-image for preview. As the descriptions says: min Chrome 30, it might be that something has changed in the getSource API? Can anyone reproduce this problem?

When the source is changed, JS throws:

Uncaught TypeError: window.stream.stop is not a function GET https://simpl.info/getusermedia/sources/null

Apparently https://github.com/andyet/SimpleWebRTC/issues/363#issuecomment-163178700 with Chrome 47 the stream API has changed.

sys: Win7, Chrome 53.0.2785.143

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/samdutton/simpl/issues/83, or mute the thread https://github.com/notifications/unsubscribe-auth/AAMhqkT1djFtk2SqZf1u_TnmPtMABq9Tks5q1WzngaJpZM4KadEy .

ghost commented 8 years ago

Solution here closed.