diff options
author | Hailey <me@haileyok.com> | 2024-08-28 08:46:47 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-28 08:46:47 -0700 |
commit | 5ae0d40a14e7015daa0161e7e9d877690f8a339e (patch) | |
tree | e8be0c39c72ef55ae65b69f3cf8cb34b902bdbff /src/view/com/util/post-embeds/VideoEmbed.web.tsx | |
parent | 9aa2b2d14e833a7efa8a22688ac8bd80f8f57dac (diff) | |
download | voidsky-5ae0d40a14e7015daa0161e7e9d877690f8a339e.tar.zst |
[Video] 🫧 Move logic around by platform (#5003)
Diffstat (limited to 'src/view/com/util/post-embeds/VideoEmbed.web.tsx')
-rw-r--r-- | src/view/com/util/post-embeds/VideoEmbed.web.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/view/com/util/post-embeds/VideoEmbed.web.tsx b/src/view/com/util/post-embeds/VideoEmbed.web.tsx index 5803b836d..c0d774abe 100644 --- a/src/view/com/util/post-embeds/VideoEmbed.web.tsx +++ b/src/view/com/util/post-embeds/VideoEmbed.web.tsx @@ -8,14 +8,14 @@ import { } from 'view/com/util/post-embeds/VideoEmbedInner/VideoEmbedInnerWeb' import {atoms as a, useTheme} from '#/alf' import {ErrorBoundary} from '../ErrorBoundary' -import {useActiveVideoView} from './ActiveVideoContext' +import {useActiveVideoWeb} from './ActiveVideoWebContext' import * as VideoFallback from './VideoEmbedInner/VideoFallback' export function VideoEmbed({source}: {source: string}) { const t = useTheme() const ref = useRef<HTMLDivElement>(null) const {active, setActive, sendPosition, currentActiveView} = - useActiveVideoView({source}) + useActiveVideoWeb() const [onScreen, setOnScreen] = useState(false) useEffect(() => { |