diff --git a/ui/v2.5/src/components/ScenePlayer/ScenePlayer.tsx b/ui/v2.5/src/components/ScenePlayer/ScenePlayer.tsx index c566eb1b3..77c0d2b19 100644 --- a/ui/v2.5/src/components/ScenePlayer/ScenePlayer.tsx +++ b/ui/v2.5/src/components/ScenePlayer/ScenePlayer.tsx @@ -882,11 +882,13 @@ export const ScenePlayer: React.FC = PatchComponent( if (!player) return; // set up mediasession plugin + // get performer names as array + const performers = scene?.performers.map((p) => p.name).join(", "); player .mediaSession() .setMetadata( scene?.title ?? "Stash", - scene?.studio?.name ?? "Stash", + scene?.studio?.name ?? performers ?? "Stash", scene.paths.screenshot || "" ); }, [getPlayer, scene]); diff --git a/ui/v2.5/src/components/ScenePlayer/media-session.ts b/ui/v2.5/src/components/ScenePlayer/media-session.ts index 7be1d0d4e..b3ce2d0ea 100644 --- a/ui/v2.5/src/components/ScenePlayer/media-session.ts +++ b/ui/v2.5/src/components/ScenePlayer/media-session.ts @@ -20,11 +20,11 @@ class MediaSessionPlugin extends videojs.getPlugin("plugin") { } // manually set poster since it's only set on useEffect - public setMetadata(title: string, studioName: string, poster: string): void { + public setMetadata(title: string, artist: string, poster: string): void { if ("mediaSession" in navigator) { navigator.mediaSession.metadata = new MediaMetadata({ title, - artist: studioName, + artist, artwork: [ { src: poster || this.player.poster() || "",