add seeking back to pause action

This commit is contained in:
Jelle van Snik 2023-02-04 19:12:54 +01:00
parent 63be27b9ae
commit 210e60c24d
3 changed files with 3 additions and 3 deletions

View File

@ -20,6 +20,7 @@ initializeChromecast();
// TODO video todos:
// - mobile controls start showing when resizing
// - bug: popouts sometimes stop working when selecting different episode
// - captions
// - chrome cast support
// - safari fullscreen will make video overlap player controls

View File

@ -12,7 +12,6 @@ export function VideoPlayerBase(props: VideoPlayerBaseProps) {
const ref = useRef<HTMLDivElement>(null);
// TODO error boundary
// TODO move error boundary to only decorated, <VideoPlayer /> shouldn't have styling
// TODO internal controls
return (
<VideoPlayerContextProvider>

View File

@ -20,8 +20,8 @@ export function PauseAction(props: Props) {
else controls.play();
}, [mediaPlaying, controls]);
// TODO add seeking back
const icon = mediaPlaying.isPlaying ? Icons.PAUSE : Icons.PLAY;
const icon =
mediaPlaying.isPlaying || mediaPlaying.isSeeking ? Icons.PAUSE : Icons.PLAY;
return (
<VideoPlayerIconButton