mirror of
https://github.com/sussy-code/smov.git
synced 2025-01-01 16:37:39 +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:
|
||||
// - 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 a new issue