mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-08-02 09:14:40 +02:00
Add:Audio player next/prev chapter buttons
This commit is contained in:
parent
3171ce5aba
commit
2d5e4ebcf0
6 changed files with 61 additions and 12 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue