fix stuff + add stuff
This commit is contained in:
parent
a219aa4192
commit
2479fdbc87
@ -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());
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user