From 1b02f81cb85333462e3a9a42accc05d09aca4f2c Mon Sep 17 00:00:00 2001 From: Hailey Date: Wed, 7 Aug 2024 14:45:06 -0700 Subject: [Video] Visibility detection view (#4741) Co-authored-by: Samuel Newman <10959775+mozzius@users.noreply.github.com> --- .../post-embeds/VideoEmbedInner/VideoWebControls.tsx | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/view/com/util/post-embeds/VideoEmbedInner/VideoWebControls.tsx (limited to 'src/view/com/util/post-embeds/VideoEmbedInner/VideoWebControls.tsx') diff --git a/src/view/com/util/post-embeds/VideoEmbedInner/VideoWebControls.tsx b/src/view/com/util/post-embeds/VideoEmbedInner/VideoWebControls.tsx new file mode 100644 index 000000000..11e0867e4 --- /dev/null +++ b/src/view/com/util/post-embeds/VideoEmbedInner/VideoWebControls.tsx @@ -0,0 +1,16 @@ +import React from 'react' +import type Hls from 'hls.js' + +export function Controls({}: { + videoRef: React.RefObject + hlsRef: React.RefObject + active: boolean + setActive: () => void + focused: boolean + setFocused: (focused: boolean) => void + onScreen: boolean + fullscreenRef: React.RefObject + hasSubtitleTrack: boolean +}): React.ReactElement { + throw new Error('Web-only component') +} -- cgit 1.4.1