-
-
Notifications
You must be signed in to change notification settings - Fork 974
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add transceiver.mid to onTrack() event payload #628
Comments
Apparently, access to mid (why not to the whole Transceiver object) is essential Congratulations for the excelent job. These improvements are naturally for advanced use. |
The following obvious change is also needed: to align with this.emit("track", e.track, t, e.transceiver) |
@franciscoreis that's almost exactly what I ended up doing in my fork: jeremija@f3eaec5 |
Sure, your input was essential to find the solution I am looking for since Tuesday, thanks! |
so do I understand correctly that if one has more tracks like this on the initiator side:
then when receiving them, there is no way to differentiate on which is which? @feross, @t-mullen how would you see the API for this? I can push a PR that includes also an updated documentation if you agree with passing the transreceiver to the events too. Thank you! |
I'd like to propose adding a third parameter,
event.transceiver.mid
, to thetrack
event:Background
The Unified Plan Transition Guide says the following:
I'm building an SFU, and since a change of
track.id
orMediaStream.id
might not be visible in the browser, I see no other option than to use themid
and send the track information for a particularmid
through a different channel.To be able to do that, I need to know which transceiver a track belongs to, and I was unable to find a public API from
simple-peer
that would allow me to do that. Thanks!The text was updated successfully, but these errors were encountered: