Skip to content

Commit

Permalink
Update video.js (#831)
Browse files Browse the repository at this point in the history
Also set chapterInfo in the `updateMetadata` method
  • Loading branch information
jiajiabingcheng committed Apr 12, 2024
1 parent 7bcc007 commit 9e4b3b7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion media-session/video.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ function updateMetadata() {
navigator.mediaSession.metadata = new MediaMetadata({
title: track.title,
artist: track.artist,
artwork: track.artwork
artwork: track.artwork,
chapterInfo: track.chapterInfo,
});

// Media is loaded, set the duration.
Expand Down

0 comments on commit 9e4b3b7

Please sign in to comment.