Windows Thumbnail Bar
* While in the player view, show a play/pause toggle in the thumbnail
This commit is contained in:
@@ -372,14 +372,18 @@ function pause () {
|
||||
|
||||
function playPause () {
|
||||
if (state.location.url() !== 'player') return
|
||||
|
||||
if (state.playing.isPaused) {
|
||||
play()
|
||||
} else {
|
||||
pause()
|
||||
}
|
||||
|
||||
// force rerendering if window is hidden,
|
||||
// in order to bypass `raf` and play/pause media immediately
|
||||
if (!state.window.isVisible) render(state)
|
||||
|
||||
ipcRenderer.send('updateThumbnailBar', state.playing.isPaused)
|
||||
}
|
||||
|
||||
function jumpToTime (time) {
|
||||
|
||||
Reference in New Issue
Block a user