Skip to content
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

ref(ssrc-rewriting): Fire track removed/added instead of owner changed. #2509

Merged
merged 3 commits into from
Apr 24, 2024

Conversation

jallamsetty1
Copy link
Member

@jallamsetty1 jallamsetty1 commented Apr 18, 2024

When an existing SSRC for a remote track gets re-mapped from one source to another, fire a TRACK_REMOVED event followed by TRACK_ADDED event instead of TRACK_OWNER_CHANGED event. This should simplify the application logic for track handling when SSRC rewriting is enabled.

When an existing SSRC for a remote track gets re-mapped from one source to another, fire a TRACK_REMOVED event followed by TRACK_ADDED event instead of TRACK_OWNER_CHANGED event. This should simplify the application logic for track handling.
Copy link
Member

@saghul saghul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with a suggestion.

/**
* Indicates that a new owner has been assigned to a remote track when SSRC rewriting is enabled.
*/
TRACK_OWNER_ADDED = 'track.owner_added',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"added" and "removed" read weird here. How about a single TRACK_OWNER_SET ? We'd only need 1 then.

@jallamsetty1
Copy link
Member Author

Jenkins test this please.

@jallamsetty1 jallamsetty1 merged commit f16cadc into master Apr 24, 2024
2 checks passed
@jallamsetty1 jallamsetty1 deleted the fix-ssrc-rewriting branch April 24, 2024 21:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants