mirror of
https://github.com/movie-web/movie-web.git
synced 2024-12-24 04:11:52 +01:00
add seeking back to pause action
This commit is contained in:
parent
63be27b9ae
commit
210e60c24d
@ -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
|
||||
|
@ -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>
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user