-
Notifications
You must be signed in to change notification settings - Fork 115
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
Expose extension fields #233
base: master
Are you sure you want to change the base?
Conversation
Codecov ReportPatch coverage is
📢 Thoughts on this report? Let us know!. |
Hello, extensions are currently managed through Do i like this implementation? no. Personally i think that those functions should be removed, extensions should be exposed directly and consistency tests should be performed into But anyway we're not talking about a missing feature, since the feature is already fully implemented, we're talking about a design choice, so it's not up to me to decide. |
The current API actually cannot meet the requirement of SFU updating extension ID.
The only way we can do this under the current API design is:
As you can see, this makes no sense. Since Extensions are already exposed, I think this is an acceptable minimal change without changing the existing API design. |
Why do you say that I think your task (changing an extension ID) can be solved by calling in sequence |
Yes, I could also :
Still, why not just expose the ID. And if we can't change extensions, why expose it. |
Whether they are exposed or not, I think they should be consistent - either all exposed or none exposed. Since Extensions are already exposed, then the ID and Payload should also be exposed. |
Doing what you propose would allow to bypass consistency checks, as i already wrote, and this would mean losing a feature instead of gaining one. If you want to expose extensions, also reimplement consistency checks into |
Yes, I understand your concern. But I think it's already been bypassed.
The exposed fields in the header have already caused inconsistencies. |
Here are my thoughts:
I will leave it up to you or others, thanks for your replies. |
@aler9 @jerry-tao I filed a similar issue might be related to this one at #249 |
Description
The Extension in the RTP header is exposed, but the id and payload are not. I think it would make sense for these two fields to also be exposed.