johannest / webrtc

Simple Vaadin add-on for a WebRTC peer-to-peer webcam sharing
2 stars 3 forks source link

Prevent asking several time in-sequence consent for webcam usage unless really needed #10

Closed johannest closed 7 years ago

Pasadena commented 7 years ago

@johannest onUserFound -method seems to be the one that triggers those extra "permission required" -notifications (because the method re-queries the media stream).

It seems that streams are connected without the need to re-query the user's current media stream, so the solution to this issue might be to remove the getUserMedia -function call from this method.

johannest commented 7 years ago

Sounds good

johannest commented 7 years ago

Seems to work now