I have an application where every call starts with audio, but user have opportunity switching video chat (there is a button).
And here is problem, after the first switch all work fine but then after switch to audio and again to video remote stream don't appear for user that doesn't use Firefox
it means that Firefox's
peer connection has a problem with adding localstream
.
It looks like FireFox
removeTrack()
function works different then in other browsers, in FireFox
removed sender stays in peerconnection object but in another browsers not.
When anyone of users dont use Firefox
this problem doesn`t appear.
Below link to project (this is angular
framework architecture) and additional description.
project
p.s.: main logic in 'app/src/app/app.components.ts'
My question
What can be reason of it and how fix it?
Please provide some of your suggestions and advices if you have experience in it. It will be very usefull and any help would be appreciated!
Big thanks in advance