-
Notifications
You must be signed in to change notification settings - Fork 25
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
[Fix]VideoRenderers being added in multiple superviews #251
Conversation
1f124db
to
2e06696
Compare
42c5200
to
1f9a193
Compare
Remove computed property
1f9a193
to
e4ef748
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice find 👍 So now we remove the track in 2 cases:
- when participant leaves the call
- when the track is unpublished for other reasons than muting
@@ -72,10 +72,10 @@ struct VisibilityThresholdModifier: ViewModifier { | |||
|
|||
/// Check if the content view is vertically within the parent's bounds. | |||
let verticalVisible = (minY + requiredHeight <= bounds.maxY && minY >= bounds.minY) || | |||
(maxY - requiredHeight >= bounds.minY && maxY <= bounds.maxY) | |||
(maxY - requiredHeight >= bounds.minY && maxY <= bounds.maxY) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indentation here and on the next one
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I actually did that in purpose to help with the readability of the calculations. I can roll it back if you want though.
dbc32ce
to
1d24d96
Compare
|
🎯 Goal
Ensure that video tracks are always visible.
📝 Summary
There are a two underline issues resulting in this bug:
hasVideo:false
. Due to this we have multiple instances of VideoRendererView trying to use the cached VideoRenderer.🛠 Implementation
muted
showVideo
we render a dummy VideoRenderer and not trying to use the cached value.🧪 Manual Testing Notes
☑️ Contributor Checklist