Add:Media session controls and metadata

This commit is contained in:
advplyr 2022-05-15 15:48:41 -05:00
parent 958d68ffa9
commit 8061ee29d5
2 changed files with 69 additions and 1 deletions

View file

@ -179,6 +179,9 @@ export default class PlayerHandler {
}
this.player.set(this.libraryItem, audioTracks, this.isHlsTranscode, this.startTime, this.playWhenReady)
// browser media session api
this.ctx.setMediaSession()
}
closePlayer() {