fix stuff + add stuff

This commit is contained in:
ashley 2025-10-07 01:58:37 +02:00
parent a219aa4192
commit 2479fdbc87

View File

@ -195,9 +195,15 @@ document.addEventListener("DOMContentLoaded", () => {
try { try {
navigator.mediaSession.metadata = new MediaMetadata({ navigator.mediaSession.metadata = new MediaMetadata({
title: document.title || 'Video', title: document.title || 'Video',
artist: '', artist: authorchannelname,
album: '', album: '',
artwork: [] artwork: [
{
src: `https://i.ytimg.com/vi/${vidKey}/maxresdefault.jpg`,
sizes: "1280x720",
type: "image/jpeg"
}
]
}); });
} catch {} } catch {}
navigator.mediaSession.setActionHandler('play', () => playTogether()); navigator.mediaSession.setActionHandler('play', () => playTogether());