Skip to content

Specify correct video size on adaptive stream#1055

Open
bdlukaa wants to merge 6 commits intolivekit:mainfrom
totem-technologies:main
Open

Specify correct video size on adaptive stream#1055
bdlukaa wants to merge 6 commits intolivekit:mainfrom
totem-technologies:main

Conversation

@bdlukaa
Copy link
Copy Markdown

@bdlukaa bdlukaa commented Apr 15, 2026

This update replaces the previous polling-based system with a more efficient, event-driven approach for calculating video view dimensions.

Removed the 300ms timer that previously polled for layout changes. The system now calls updateVideoViewSize only when an actual width change is detected.

Video dimensions are now calculated by multiplying the view size by the device pixel ratio, ensuring the feed matches the hardware's native resolution.

Eliminated cached GlobalKeys and expensive RenderBox calculations to reduce overhead.

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Apr 15, 2026

CLA assistant check
All committers have signed the CLA.

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