-
Notifications
You must be signed in to change notification settings - Fork 51
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
Event::MediaAdded
is not fired for medias added in local offer
#567
Comments
We only use direct API, but if I remember correctly, it will fire for local added streams. |
I don't think we should fire it when the user explicitly added the media, I believe this aligns with the spec too. I consulted our usage too, we don't expect it to fire on locally added media |
So a PR adjusting the doc to that effect? |
I think so yes. |
I did verify that when we add our local streams with direct API we are getting MediaAdded events. (We are not using it) |
Ah, and I'm using SDP api and not getting
I'm okay with both options, just want to be sure that it works as expected and won't change someday.
Works for me. I'll prepare a PR (regarding RTX cache drop ratio) in the next few days and i can update this doc there. So feel free to close this issue, or I'll close it after doc is updated. |
Ok. So PR to fix docs and change this behavior. |
The
MediaAdded
event documentation states thatWhich is not the case, since it is emitted only for media lines added via remote offer, and it seems that firing these event for local offer is explicitly disabled right here: 0, 1.
And, yeah, while this is an
apply_answer()
function it is also when local offer is being applied too, so i guess it should also causeMediaAdded
event to fire.So is this an expected behaviour and outdated documentation or a bug? I can prepare a PR if its the second case.
The text was updated successfully, but these errors were encountered: