Commit 6c33aebd authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇

Prefer to use currentSrc on player

A player can have multiple sources as <source> tags inside of it, at which point
the "src" property will be empty. "currentSrc" actually returns the current source
being used.
parent 67637ff3
......@@ -341,7 +341,7 @@ function setPlayerActive(player) {
// a website might have set Media Sessions metadata prior to playing
// and then we would have ignored the metadata signal because there was no player
sendMessage("mpris", "playing", {
mediaSrc: player.src,
mediaSrc: player.currentSrc || player.src,
pageTitle: document.title,
duration: player.duration,
currentTime: player.currentTime,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment