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

fix: tighten VideoTrackRenderer Widget #695

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

holzgeist
Copy link
Contributor

@holzgeist holzgeist commented Jan 28, 2025

This allows external users to e.g. apply rounded edges. Without this patch, VideoTrackRenderer will expand to its available space with no way (known to me..) for parent widgets to know how large the video actually is.

depends on flutter-webrtc/flutter-webrtc#1754 (and flutter-webrtc/webrtc-interface#30)

This allows external users to e.g. apply rounded edges.
Without this patch, VideoTrackRenderer will expand to its available
space with no way for parent widgets to know how large the video
actually is
@holzgeist
Copy link
Contributor Author

tests fail due to required changes in flutter-webrtc and webrtc-interface not being merged yet

@holzgeist
Copy link
Contributor Author

I just realized that I should probably move the sized box up the chain to _VideoTrackRendererState.build to also include web..

also, cover all paths by moving up sizing logic to build function
@cloudwebrtc
Copy link
Contributor

This PR will be merged after the new flutter-webrtc is released

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