mirror of
https://github.com/sussy-code/smov.git
synced 2025-01-17 01:51:24 +01:00
add seeking back to pause action
This commit is contained in:
parent
63be27b9ae
commit
210e60c24d
3 changed files with 3 additions and 3 deletions
|
@ -20,6 +20,7 @@ initializeChromecast();
|
||||||
|
|
||||||
// TODO video todos:
|
// TODO video todos:
|
||||||
// - mobile controls start showing when resizing
|
// - mobile controls start showing when resizing
|
||||||
|
// - bug: popouts sometimes stop working when selecting different episode
|
||||||
// - captions
|
// - captions
|
||||||
// - chrome cast support
|
// - chrome cast support
|
||||||
// - safari fullscreen will make video overlap player controls
|
// - safari fullscreen will make video overlap player controls
|
||||||
|
|
|
@ -12,7 +12,6 @@ export function VideoPlayerBase(props: VideoPlayerBaseProps) {
|
||||||
const ref = useRef<HTMLDivElement>(null);
|
const ref = useRef<HTMLDivElement>(null);
|
||||||
// TODO error boundary
|
// TODO error boundary
|
||||||
// TODO move error boundary to only decorated, <VideoPlayer /> shouldn't have styling
|
// TODO move error boundary to only decorated, <VideoPlayer /> shouldn't have styling
|
||||||
// TODO internal controls
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<VideoPlayerContextProvider>
|
<VideoPlayerContextProvider>
|
||||||
|
|
|
@ -20,8 +20,8 @@ export function PauseAction(props: Props) {
|
||||||
else controls.play();
|
else controls.play();
|
||||||
}, [mediaPlaying, controls]);
|
}, [mediaPlaying, controls]);
|
||||||
|
|
||||||
// TODO add seeking back
|
const icon =
|
||||||
const icon = mediaPlaying.isPlaying ? Icons.PAUSE : Icons.PLAY;
|
mediaPlaying.isPlaying || mediaPlaying.isSeeking ? Icons.PAUSE : Icons.PLAY;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<VideoPlayerIconButton
|
<VideoPlayerIconButton
|
||||||
|
|
Loading…
Reference in a new issue