It seems that the site is setting the artist name correctly and I didn't find any signs of a different codepath for Firefox on Windows. This is the code that they're using to set metadata in https://www.cbc.ca/i/caffeine/js/Caffeine.modules.js: ```js ... get artist() { if ('music' === a.getContentArea().toLowerCase()) return a.getShowName() }, get album() { if ('music' === a.getContentArea().toLowerCase()) return a.getDescription() }, ... function s() { t = n.session.modelsManager.getClip(n.player.currentClip); navigator.mediaSession.metadata = (e = t.getHostImage() || t.getThumbnail() || 'https://www.cbc.ca/i/caffeine/images/default_video_image.jpg', new o({ title: t.getTitle(), artist: t.getShowName(), album: t.getDescription(), artwork: [ ... })); ``` If I console.log `navigator.mediaSession.metadata` this is the result in both browsers: ```js { album: "Jazz Songbook" artist: "Tony Bennett,Diana Krall" artwork: (6) [{…}, {…}, {…}, {…}, {…}, {…}] title: "Alright, Okay, You Win" } ``` Based on it Chrome is showing title and artist, and Firefox is showing title and album on Windows. I've found this example https://googlechrome.github.io/samples/media-session/audio.html where a similar difference can be reproduced. If you press play, and press the volume control Frefox will show `Snow Fight / Sintel` and Chrome `Snow Fight / Jan Morgenstern` for a metadata like this: ```js { src: BASE_URL + 'sintel/snow-fight.mp3', title: 'Snow Fight', artist: 'Jan Morgenstern', album: 'Sintel', artwork: [...] } ``` Hi Alastor, I wonder if we actually showing `album` instead of `artist` on Windows in the media controller ui? (and sounds like on Linux it matches Chrome's behaviour)
Bug 1691115 Comment 7 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
It seems that the site is setting the artist name correctly and I didn't find any signs of a different codepath for Firefox on Windows. This is the code that they're using to set metadata in https://www.cbc.ca/i/caffeine/js/Caffeine.modules.js: ```js ... get artist() { if ('music' === a.getContentArea().toLowerCase()) return a.getShowName() }, get album() { if ('music' === a.getContentArea().toLowerCase()) return a.getDescription() }, ... function s() { t = n.session.modelsManager.getClip(n.player.currentClip); navigator.mediaSession.metadata = (e = t.getHostImage() || t.getThumbnail() || 'https://www.cbc.ca/i/caffeine/images/default_video_image.jpg', new o({ title: t.getTitle(), artist: t.getShowName(), album: t.getDescription(), artwork: [ ... })); ``` If I console.log `navigator.mediaSession.metadata` this is the result in both browsers: ```js { album: "Jazz Songbook" artist: "Tony Bennett,Diana Krall" artwork: (6) [{…}, {…}, {…}, {…}, {…}, {…}] title: "Alright, Okay, You Win" } ``` Based on it Chrome is showing title and artist, and Firefox is showing title and album on Windows. I've found this example https://googlechrome.github.io/samples/media-session/audio.html where a similar difference can be reproduced. If you press play, and press the volume control Frefox will show `Snow Fight / Sintel` and Chrome `Snow Fight / Jan Morgenstern` for this metadata: ```js { src: BASE_URL + 'sintel/snow-fight.mp3', title: 'Snow Fight', artist: 'Jan Morgenstern', album: 'Sintel', artwork: [...] } ``` Hi Alastor, I wonder if we actually showing `album` instead of `artist` on Windows in the media controller ui? (and sounds like on Linux it matches Chrome's behaviour)