Add getter methods for mid and paused in TrackLocalContext #640
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Dear maintainers,
Thank you for your efforts in maintaining this project.
I have added two getter methods to retrieve the
mid
andpaused
fields from theTrackLocalContext
struct.In my project, I am implementing a custom
TrackLocal
similar toTrackLocalStaticRTP
. The bind method provides aTrackLocalContext
, but currently, I am unable to access all its fields because they are marked aspub(crate)
.webrtc/webrtc/src/track/track_local/track_local_static_rtp.rs
Line 177 in de46a53
To address this, I have introduced getter methods for the
mid
andpaused
fields, ensuring that these values can be accessed outside the crate while maintaining encapsulation.I hope this change aligns with the project's design principles and proves helpful for others with similar use cases. Please let me know if there are any concerns or adjustments needed.
Thank you for considering this contribution.