Skip to content

fix: don't dispose the mediaSource when disposing a cloned track #10

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

Merged
merged 5 commits into from
Mar 18, 2025

Conversation

oliverlaz
Copy link
Member

@oliverlaz oliverlaz commented Mar 18, 2025

Overview

When disposing of a cloned track, we shouldn't dispose of the shared resources, as they'll lead to "blackened" root tracks.

TrackPrivate has been extended with an extra parent field that points to the parent track when cloned.
In the future, we should extend the implementation and ensure we properly clean up resources in both directions (top to bottom, and bottom-up). Currently, we only handle bottom-up.

Ref: https://linear.app/stream/issue/RN-168/issue-with-camera-not-turning-on-by-default-after-upgrading-sdk

@oliverlaz oliverlaz merged commit 0345208 into master Mar 18, 2025
1 of 3 checks passed
@oliverlaz oliverlaz deleted the clone-disposal branch March 18, 2025 14:29
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.

2 participants