@@ -206,6 +206,9 @@ function dispatch (action, ...args) {
|
||||
state.video.isPaused = true
|
||||
update()
|
||||
}
|
||||
if (action === 'videoPlaying') {
|
||||
ipcRenderer.send('playing-video')
|
||||
}
|
||||
if (action === 'videoPaused') {
|
||||
ipcRenderer.send('paused-video')
|
||||
}
|
||||
|
||||
@@ -36,6 +36,7 @@ function Player (state, dispatch) {
|
||||
ondblclick=${() => dispatch('toggleFullScreen')}
|
||||
onloadedmetadata=${onLoadedMetadata}
|
||||
onended=${onEnded}
|
||||
onplay=${() => dispatch('videoPlaying')}
|
||||
onpause=${() => dispatch('videoPaused')}
|
||||
autoplay>
|
||||
</video>
|
||||
|
||||
Reference in New Issue
Block a user