feat(mpris): Add `xesam:url` field (#2095)
chore: do not use fuo scheme, only netease music id is preserved fix: lint prettier error
This commit is contained in:
parent
e14e6d73c6
commit
f4d3d67132
|
@ -35,6 +35,7 @@ export function createMpris(window) {
|
|||
'xesam:title': metadata.title,
|
||||
'xesam:album': metadata.album,
|
||||
'xesam:artist': metadata.artist.split(','),
|
||||
'xesam:url': metadata.url,
|
||||
};
|
||||
});
|
||||
|
||||
|
|
|
@ -615,6 +615,7 @@ export default class {
|
|||
],
|
||||
length: this.currentTrackDuration,
|
||||
trackId: this.current,
|
||||
url: '/trackid/' + track.id,
|
||||
};
|
||||
|
||||
navigator.mediaSession.metadata = new window.MediaMetadata(metadata);
|
||||
|
|
Loading…
Reference in New Issue