Add:Audio player next/prev chapter buttons

This commit is contained in:
advplyr 2022-06-04 12:07:38 -05:00
parent 3171ce5aba
commit 2d5e4ebcf0
6 changed files with 61 additions and 12 deletions

View file

@ -124,6 +124,8 @@ export default class CastPlayer extends EventEmitter {
async seek(time, playWhenReady) {
if (!this.player) return
this.playWhenReady = playWhenReady
if (time < this.currentTrack.startOffset || time > this.currentTrack.startOffset + this.currentTrack.duration) {
// Change Track
var request = buildCastLoadRequest(this.libraryItem, this.coverUrl, this.audioTracks, time, playWhenReady, this.defaultPlaybackRate)