From 9e4b3b77b091268d28e5438bb2fe8829091e9540 Mon Sep 17 00:00:00 2001 From: jiamingc Date: Fri, 12 Apr 2024 00:16:56 -0700 Subject: [PATCH] Update video.js (#831) Also set chapterInfo in the `updateMetadata` method --- media-session/video.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/media-session/video.js b/media-session/video.js index 5ed6c20d6a..a76f9320c1 100644 --- a/media-session/video.js +++ b/media-session/video.js @@ -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.