Skip to content

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