hlsLoading: boolean
hasSubtitleTrack: boolean
+ isGif: boolean
}) {
const {
play,
@@ -287,6 +290,16 @@ export function Controls({
((focused || autoplayDisabled) && !playing) ||
(interactingViaKeypress ? hasFocus : hovered)
+ if (isGif) {
+ return (
+
+ )
+ }
+
return (
void
}) {
const t = useTheme()
- const playerRef = React.useRef(null)
+ const playerRef = useRef(null)
const autoplayDisabled = useAutoplayDisabled()
let aspectRatio = asset.width / asset.height