adapter: OnTrack event is not fired sometimes
Browsers and versions affected Chrome: Version 59.0.3071.104 (Official Build) (64-bit) Adapter.js : Version 4.0.1 from www.webjars.org
Description
The ontrack event is not fired sometimes in remote stream, although if I type in the browser: peerConnection.getRemoteStreams()[0].getVideoTracks()
I can see all video tracks. Notice I have only one stream.
Notice I added :
pc.ontrack = function(event) { ... }
Steps to reproduce I add video tracks, sometimes first time fails and sometimes after 10 o 12 times.
Expected results ontrack event works properly always that there is a new track
Actual results Sometimes ontrack event is not fired
Thank you! Raul.
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 7
- Comments: 28 (7 by maintainers)
The problem is that it does not always happens … I’ll try to use your example to simulate
In my case the peer.ontrack is dispatched only for one side the one creating offer. The other one does not get the remote stream.
@fippo If you want i can upload not working demo to free heroku server.
@fippo yes, I will get that sdps during this morning.
Thanks!