|
@ -166,6 +166,7 @@ const usePlayerControls = ( |
|
|
playersRef.current.player2.audioEl.current.currentTime = 0; |
|
|
playersRef.current.player2.audioEl.current.currentTime = 0; |
|
|
playersRef.current.player1.audioEl.current.pause(); |
|
|
playersRef.current.player1.audioEl.current.pause(); |
|
|
playersRef.current.player1.audioEl.current.currentTime = 0; |
|
|
playersRef.current.player1.audioEl.current.currentTime = 0; |
|
|
|
|
|
setCurrentTime(0); |
|
|
|
|
|
|
|
|
ipcRenderer.send('playpause', { |
|
|
ipcRenderer.send('playpause', { |
|
|
status: 'PAUSED', |
|
|
status: 'PAUSED', |
|
@ -175,7 +176,7 @@ const usePlayerControls = ( |
|
|
setTimeout(() => { |
|
|
setTimeout(() => { |
|
|
dispatch(setStatus('PAUSED')); |
|
|
dispatch(setStatus('PAUSED')); |
|
|
}, 250); |
|
|
}, 250); |
|
|
}, [dispatch, playersRef]); |
|
|
}, [dispatch, playersRef, setCurrentTime]); |
|
|
|
|
|
|
|
|
const handleSeekBackward = useCallback(() => { |
|
|
const handleSeekBackward = useCallback(() => { |
|
|
const seekBackwardInterval = Number(settings.getSync('seekBackwardInterval')); |
|
|
const seekBackwardInterval = Number(settings.getSync('seekBackwardInterval')); |
|
|