Fabio Rosenthal Ginzel Posted January 5, 2021 Share Posted January 5, 2021 Hello, WebRTCAdaptor calls the navigatorUserMedia method twice, so the closeStream method does not turn off the use of the webcam. How do I turn off the webcam? Link to comment Share on other sites More sharing options...
0 Burak Posted January 10, 2021 Share Posted January 10, 2021 Let me check and update you. Link to comment Share on other sites More sharing options...
0 Fabio Rosenthal Ginzel Posted January 11, 2021 Author Share Posted January 11, 2021 In this line https://github.com/ant-media/StreamApp/blob/master/src/main/webapp/js/webrtc_adaptor.js#L246 he add a first track, but in closeStream method not stop second track of stream Link to comment Share on other sites More sharing options...
0 Tahir Posted January 26, 2021 Share Posted January 26, 2021 Hi Fabio, What do you mean by not turning off the use of the webcam, I checked the webcam use after closeStream by both the camera light and also the command lsmod | grep uvcvideo to see if something is grabbing the webcam after we call close and see that there are nobody using cam. I called the closeStream on our example page index.html after publish_finished callback and there are no process using my webcam after that. Cheers Link to comment Share on other sites More sharing options...
Question
Fabio Rosenthal Ginzel
Link to comment
Share on other sites
Top Posters For This Question
2
1
1
Popular Days
Jan 5
1
Jan 10
1
Jan 11
1
Jan 26
1
Top Posters For This Question
Fabio Rosenthal Ginzel 2 posts
Tahir 1 post
Burak 1 post
Popular Days
Jan 5 2021
1 post
Jan 10 2021
1 post
Jan 11 2021
1 post
Jan 26 2021
1 post
3 answers to this question
Recommended Posts