Skip to content

Conversation

@dganzella
Copy link
Contributor

@dganzella dganzella commented Oct 6, 2025

There is an issue in chrome mobile where, if the video element tag is outside of the visible viewport, the video won't be rendered (will appear as black).

That can happen if the added video tag just happens to go in the bottom of a body, and whatever relative elements exists before pushes it outside of the viewport boundary

Screen.Recording.2025-10-03.at.20.39.21.mov

This fix forces the position html video element (that is already an absoltue element) to be on the top left so it stays on screen and thus is rendered by chrome mobile not depending of the contents of the html itself.


I've tested this and it only happens specifically in Androrid-Chrome combo

cc @kNoAPP that helped find where in the code the html element was created

force position html video element on top left so it stays on screen and thus is rendered by chrome mobile
@dganzella dganzella changed the title Fix: fix chrome mobile not-rendering html <video> element Fix: fix chrome mobile not rendering html <video> element Oct 6, 2025
@dganzella dganzella changed the title Fix: fix chrome mobile not rendering html <video> element Fix: fix Android chrome mobile not rendering html <video> element Oct 6, 2025
Copy link
Member

@cloudwebrtc cloudwebrtc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch!

@cloudwebrtc cloudwebrtc merged commit 51ff309 into flutter-webrtc:main Oct 7, 2025
8 checks passed
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