mirror of
https://github.com/koel/koel
synced 2024-11-10 06:34:14 +00:00
fix: allowing prev and next on iOS
This commit is contained in:
parent
bd40651061
commit
31a8284c88
1 changed files with 7 additions and 7 deletions
|
@ -359,13 +359,13 @@ class PlaybackService {
|
|||
navigator.mediaSession.setActionHandler('previoustrack', () => this.playPrev())
|
||||
navigator.mediaSession.setActionHandler('nexttrack', () => this.playNext())
|
||||
|
||||
// navigator.mediaSession.setActionHandler('seekbackward', details => {
|
||||
// this.player.media.currentTime -= (details.seekOffset || 10)
|
||||
// })
|
||||
//
|
||||
// navigator.mediaSession.setActionHandler('seekforward', details => {
|
||||
// this.player.media.currentTime += (details.seekOffset || 10)
|
||||
// })
|
||||
navigator.mediaSession.setActionHandler('seekbackward', details => {
|
||||
this.player.media.currentTime -= (details.seekOffset || 10)
|
||||
})
|
||||
|
||||
navigator.mediaSession.setActionHandler('seekforward', details => {
|
||||
this.player.media.currentTime += (details.seekOffset || 10)
|
||||
})
|
||||
|
||||
navigator.mediaSession.setActionHandler('seekto', details => {
|
||||
if (details.fastSeek && 'fastSeek' in this.player.media) {
|
||||
|
|
Loading…
Reference in a new issue