mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-03-01 23:42:22 +00:00
fix: playback pause/play issues
This commit is contained in:
@@ -182,7 +182,6 @@ export const CurrentlyPlayingBar: React.FC = () => {
|
||||
enable: true,
|
||||
thread: true,
|
||||
}}
|
||||
paused={!isPlaying}
|
||||
onProgress={(e) => onProgress(e)}
|
||||
subtitleStyle={{
|
||||
fontSize: 16,
|
||||
|
||||
@@ -135,7 +135,7 @@ export const PlaybackProvider: React.FC<{ children: ReactNode }> = ({
|
||||
|
||||
const playVideo = useCallback(
|
||||
(triggerRef: boolean = true) => {
|
||||
if (triggerRef) {
|
||||
if (triggerRef === true) {
|
||||
videoRef.current?.resume();
|
||||
}
|
||||
_setIsPlaying(true);
|
||||
@@ -152,7 +152,7 @@ export const PlaybackProvider: React.FC<{ children: ReactNode }> = ({
|
||||
|
||||
const pauseVideo = useCallback(
|
||||
(triggerRef: boolean = true) => {
|
||||
if (triggerRef) {
|
||||
if (triggerRef === true) {
|
||||
videoRef.current?.pause();
|
||||
}
|
||||
_setIsPlaying(false);
|
||||
|
||||
Reference in New Issue
Block a user