about summary refs log tree commit diff
diff options
context:
space:
mode:
authorHailey <me@haileyok.com>2024-10-07 14:12:17 -0700
committerGitHub <noreply@github.com>2024-10-07 14:12:17 -0700
commit509b37fafa08b08026a6fee946ec54f1a83b54f9 (patch)
tree6c4bc453e08797ea7cc799205a23d0441d9c9bee
parentee25b89801c7038a95eb95500082dbccccb5cba9 (diff)
downloadvoidsky-509b37fafa08b08026a6fee946ec54f1a83b54f9.tar.zst
[Video] Prevent screen from dimming while in full screen (#5637)
-rw-r--r--package.json2
-rw-r--r--src/view/com/util/post-embeds/VideoEmbedInner/VideoEmbedInnerNative.tsx4
-rw-r--r--yarn.lock8
3 files changed, 7 insertions, 7 deletions
diff --git a/package.json b/package.json
index 828f11cb7..9b56efcaf 100644
--- a/package.json
+++ b/package.json
@@ -68,7 +68,7 @@
     "@fortawesome/free-regular-svg-icons": "^6.1.1",
     "@fortawesome/free-solid-svg-icons": "^6.1.1",
     "@fortawesome/react-native-fontawesome": "^0.3.2",
-    "@haileyok/bluesky-video": "0.1.10",
+    "@haileyok/bluesky-video": "0.2.2",
     "@lingui/react": "^4.5.0",
     "@mattermost/react-native-paste-input": "^0.7.1",
     "@miblanchard/react-native-slider": "^2.3.1",
diff --git a/src/view/com/util/post-embeds/VideoEmbedInner/VideoEmbedInnerNative.tsx b/src/view/com/util/post-embeds/VideoEmbedInner/VideoEmbedInnerNative.tsx
index c6536dec4..21db54322 100644
--- a/src/view/com/util/post-embeds/VideoEmbedInner/VideoEmbedInnerNative.tsx
+++ b/src/view/com/util/post-embeds/VideoEmbedInner/VideoEmbedInnerNative.tsx
@@ -8,7 +8,7 @@ import {useLingui} from '@lingui/react'
 
 import {HITSLOP_30} from '#/lib/constants'
 import {useAutoplayDisabled} from '#/state/preferences'
-import {useVideoMuteState} from 'view/com/util/post-embeds/VideoVolumeContext'
+import {useVideoMuteState} from '#/view/com/util/post-embeds/VideoVolumeContext'
 import {atoms as a, useTheme} from '#/alf'
 import {useIsWithinMessage} from '#/components/dms/MessageContext'
 import {Mute_Stroke2_Corner0_Rounded as MuteIcon} from '#/components/icons/Mute'
@@ -87,7 +87,7 @@ export const VideoEmbedInnerNative = React.forwardRef(
         />
         <VideoControls
           enterFullscreen={() => {
-            videoRef.current?.enterFullscreen()
+            videoRef.current?.enterFullscreen(true)
           }}
           toggleMuted={() => {
             videoRef.current?.toggleMuted()
diff --git a/yarn.lock b/yarn.lock
index 3bb82371f..95a83b75e 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -4120,10 +4120,10 @@
   resolved "https://registry.yarnpkg.com/@graphql-typed-document-node/core/-/core-3.2.0.tgz#5f3d96ec6b2354ad6d8a28bf216a1d97b5426861"
   integrity sha512-mB9oAsNCm9aM3/SOv4YtBMqZbYj10R7dkq8byBqxGY/ncFwhf2oQzMV+LCRlWoDSEBJ3COiR1yeDvMtsoOsuFQ==
 
-"@haileyok/bluesky-video@0.1.10":
-  version "0.1.10"
-  resolved "https://registry.yarnpkg.com/@haileyok/bluesky-video/-/bluesky-video-0.1.10.tgz#2756e8c83a78caeb6b120a175578eac1eb6889a9"
-  integrity sha512-W8+DNdek+xjAqTO1zmuuSrkVFxDepcP8+Gs8MvIcYSgXEJlpQimZpcMwAduiDI/jZMn/2U6cnMahx7YuiZlZ7g==
+"@haileyok/bluesky-video@0.2.2":
+  version "0.2.2"
+  resolved "https://registry.yarnpkg.com/@haileyok/bluesky-video/-/bluesky-video-0.2.2.tgz#062ef6f52376f2f8e5b787a73bbb4f66cfd3cbf3"
+  integrity sha512-N8aGu27xO99HaV957EfvB2StYRY3Gf2TdijTkYmzwULuM9aij2YeyVzDoAd4P+qYh21MRMITnJ4652sUM+SUbw==
 
 "@hapi/accept@^6.0.3":
   version "6.0.3"