Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit51ff309

Browse files
authored
Fix: fix Android chrome mobile not rendering html <video> element (#1938)
There is an issue in chrome mobile where, if the video element tag isoutside of the visible viewport, the video won't be rendered (willappear as black).That can happen if the added video tag just happens to go in the bottomof a body, and whatever relative elements exists before pushes itoutside of the viewport boundaryhttps://github.com/user-attachments/assets/a0ef4506-7642-4fbd-a68e-dfc0d3798d5cThis fix forces the position html video element (that is already anabsoltue element) to be on the top left so it stays on screen and thusis rendered by chrome mobile not depending of the contents of the htmlitself.---I've tested this and it only happens specifically in Androrid-Chromecombocc@kNoAPP that helped find where in the code the html element wascreated
1 parentf358f76 commit51ff309

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

‎lib/src/web/rtc_video_renderer_impl.dart‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,8 @@ class RTCVideoRenderer extends ValueNotifier<RTCVideoValue>
347347
element.style.pointerEvents="none";
348348
element.style.opacity="0";
349349
element.style.position="absolute";
350+
element.style.left="0px";
351+
element.style.top="0px";
350352
}
351353
}
352354

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp