[webrtc-stats] Issues with replaceTrack, will statsended fire or give me what I want. (#472)

vr000m has just created a new issue for https://github.com/w3c/webrtc-stats:

== Issues with replaceTrack, will statsended fire or give me what I want. ==
With all the changes to track attachment stats, we are close to deprecating it. May be we should not. 

My use-case of replaceTrack switching from camera to screenshare, this does not fire an event on the peerconnection. We kind of solved this issue with `onstatsended` event returning the stats of track that was being replaced. however, with the recent changes, if we get rid of the empty dictionaries there will be no stats for the track that got replaced, that means the onstatsended will fire but return an empty dictionary. We would then need to call getStats() and get the latest stats from there, albeit with a bit of delay.




Please view or discuss this issue at https://github.com/w3c/webrtc-stats/issues/472 using your GitHub account

Received on Wednesday, 14 August 2019 14:03:51 UTC