[Video] Handle push/pop on Android for autoplay (#5194)

This commit is contained in:
Hailey
2024-09-06 15:01:05 -07:00
committed by GitHub
parent 00ce95893d
commit 7e4f8cabd3
6 changed files with 45 additions and 7 deletions
+1 -1
View File
@@ -71,7 +71,7 @@ function InnerWrapper({embed}: Props) {
const [playerStatus, setPlayerStatus] = useState<
VideoPlayerStatus | 'paused'
>(player.playing ? 'readyToPlay' : 'paused')
>('paused')
const [isMuted, setIsMuted] = useState(player.muted)
const [isFullscreen, setIsFullscreen] = React.useState(false)
const [timeRemaining, setTimeRemaining] = React.useState(0)