Answer the question
In order to leave comments, you need to log in
How to create a copy of MediaStream in Firefox?
The situation is as follows: on duty, it is necessary to write a video chat based on WebRTC. The interface provides a "hide video" button, by clicking on which the broadcast to the video stream to the interlocutor should stop, however, the small window where the user sees himself should simply change (darken and blur).
Since I'm working with the original MediaStream, the problem is that as soon as I turn off the video, it turns off both in the broadcast and in the window where the user should see himself. To solve this, I'm going to make a copy of the MediaStream object, but I don't want to force the user to allow camera actions again (the only option I've found so far is to request getUserMedia twice).
In Chrome, you can create a thread based on an existing one, however, in Firefox, I did not find this. Maybe someone has already encountered a similar problem and knows how to duplicate a MediaStream in a fox without an additional request for access rights to the hardware?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question