From d33dedd03872b62578477e9b3f309a911fd961b0 Mon Sep 17 00:00:00 2001 From: Robin Date: Wed, 15 Jul 2026 16:39:20 +0200 Subject: [PATCH] Hide the browser's default placeholder image for videos Source: https://stackoverflow.com/a/79058682 --- src/graphics/video-placeholder.gif | Bin 0 -> 78 bytes src/room/VideoPreview.tsx | 4 ++++ src/room/__snapshots__/LobbyView.test.tsx.snap | 3 +++ src/tile/MediaView.tsx | 4 ++++ 4 files changed, 11 insertions(+) create mode 100644 src/graphics/video-placeholder.gif diff --git a/src/graphics/video-placeholder.gif b/src/graphics/video-placeholder.gif new file mode 100644 index 0000000000000000000000000000000000000000..db8d3841b4620155c28fd4073d77aa1d7e3e75a8 GIT binary patch literal 78 zcmZ?wbhEHb6ky = ({ // There's no reason for this to be focusable tabIndex={-1} disablePictureInPicture + // Set the placeholder to a small transparent image. (On Android web + // views the default poster image is particularly ugly.) + poster={videoPlaceholder} /> {(!videoEnabled || cameraIsStarting) && ( <> diff --git a/src/room/__snapshots__/LobbyView.test.tsx.snap b/src/room/__snapshots__/LobbyView.test.tsx.snap index d306e24ab..f3352a6ec 100644 --- a/src/room/__snapshots__/LobbyView.test.tsx.snap +++ b/src/room/__snapshots__/LobbyView.test.tsx.snap @@ -49,6 +49,7 @@ exports[`LobbyView > renders with AppBar android 1`] = `