about summary refs log tree commit diff
path: root/src/view/com/util/post-embeds/VideoPlayerContext.tsx
diff options
context:
space:
mode:
authorSamuel Newman <mozzius@protonmail.com>2024-08-09 02:33:42 +0100
committerGitHub <noreply@github.com>2024-08-09 02:33:42 +0100
commit4350dbc853766dc4ba7cc304b7a12505ef0c4781 (patch)
tree4a53a445f0b9972858f3a6cdc84992ed3914aec4 /src/view/com/util/post-embeds/VideoPlayerContext.tsx
parente782db33dcd415bf6ad122daedd3abd3aafabd64 (diff)
downloadvoidsky-4350dbc853766dc4ba7cc304b7a12505ef0c4781.tar.zst
[Video] Bundle of minor tweaks (#4904)
* fix bg color

* unique video urls for debug

* improve controls slightly

* mute until fullscreen

---------

Co-authored-by: Samuel Newman <10959775+mozzius@users.noreply.github.com>
Diffstat (limited to 'src/view/com/util/post-embeds/VideoPlayerContext.tsx')
-rw-r--r--src/view/com/util/post-embeds/VideoPlayerContext.tsx1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/view/com/util/post-embeds/VideoPlayerContext.tsx b/src/view/com/util/post-embeds/VideoPlayerContext.tsx
index 473343ca4..8f2d11f6b 100644
--- a/src/view/com/util/post-embeds/VideoPlayerContext.tsx
+++ b/src/view/com/util/post-embeds/VideoPlayerContext.tsx
@@ -14,6 +14,7 @@ export function VideoPlayerProvider({
   // eslint-disable-next-line @typescript-eslint/no-shadow
   const player = useExpoVideoPlayer(source, player => {
     player.loop = true
+    player.muted = true
     player.play()
   })