align alt text behaviour between gif types (#9822)

This commit is contained in:
Samuel Newman
2026-02-04 22:34:14 +02:00
committed by GitHub
parent 965b17ff86
commit e6c4a539ca
5 changed files with 63 additions and 75 deletions
@@ -46,6 +46,7 @@ export function Controls({
hlsLoading,
hasSubtitleTrack,
isGif,
altText,
}: {
videoRef: React.RefObject<HTMLVideoElement | null>
hlsRef: React.RefObject<Hls | undefined | null>
@@ -58,6 +59,7 @@ export function Controls({
hlsLoading: boolean
hasSubtitleTrack: boolean
isGif: boolean
altText?: string
}) {
const {
play,
@@ -296,6 +298,7 @@ export function Controls({
isPlaying={playing}
isLoading={showSpinner}
onPress={onPressPlayPause}
altText={altText}
/>
)
}