Fix MediaMetadata setter
This commit is contained in:
parent
26cc5295ad
commit
77d2e7a6ee
|
@ -228,12 +228,20 @@ export default Vue.extend({
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted: function () {
|
mounted: function () {
|
||||||
/* eslint-disable-next-line */
|
if ('mediaSession' in navigator) {
|
||||||
navigator.mediaSession.metadata = new MediaMetadata({
|
/* eslint-disable-next-line */
|
||||||
title: this.title,
|
navigator.mediaSession.metadata = new MediaMetadata({
|
||||||
artist: this.channelName,
|
title: this.title,
|
||||||
artwork: this.videoThumbnail
|
artist: this.channelName,
|
||||||
})
|
artwork: [
|
||||||
|
{
|
||||||
|
src: this.videoThumbnail,
|
||||||
|
sizes: '128x128',
|
||||||
|
type: 'image/png'
|
||||||
|
}
|
||||||
|
]
|
||||||
|
})
|
||||||
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
goToChannel: function () {
|
goToChannel: function () {
|
||||||
|
|
Loading…
Reference in New Issue