Support PulseAudio metadata
Categories
(Core :: Audio/Video: cubeb, enhancement, P4)
Tracking
()
People
(Reporter: BenB, Unassigned)
Details
(Keywords: good-first-bug)
Attachments
(3 files)
27.98 KB,
image/png
|
Details | |
5.79 KB,
patch
|
Details | Diff | Splinter Review | |
9.85 KB,
image/png
|
Details |
Reporter | ||
Comment 1•11 years ago
|
||
Updated•11 years ago
|
Updated•11 years ago
|
Reporter | ||
Comment 2•11 years ago
|
||
Comment 3•11 years ago
|
||
Reporter | ||
Comment 4•11 years ago
|
||
Comment 7•10 years ago
|
||
Reporter | ||
Comment 8•10 years ago
|
||
Updated•9 years ago
|
Updated•9 years ago
|
Comment 10•9 years ago
|
||
Comment 11•8 years ago
|
||
Comment 12•7 years ago
|
||
Updated•5 years ago
|
Comment 13•3 years ago
|
||
Is this still a relevant bug that needs any work done on it? Currently it looks like Firefox is providing the tab name to Pulseaudio, at least it is on my system, so it certainly seems like we're supporting PulseAudio metadata to me. If it's a stale bug, maybe it should be closed.
Comment 14•3 years ago
|
||
...I'll add that if this isn't considered closed and there's extra data we could be providing PulseAudio, I'm extremely interested in working on this bug if I can get some pointers from a more experienced dev on where I should be looking.
Comment 15•3 years ago
|
||
Looks sorted now, thanks peeps.
Essentially the same problem still exists with PipeWire, but that should be a new issue I'd guess.
Comment 16•3 years ago
|
||
(In reply to Milkii from comment #15)
Looks sorted now, thanks peeps.
Essentially the same problem still exists with PipeWire, but that should be a new issue I'd guess.
I'm running pipewire-pulse right now and getting the tab information, if you're getting issues with it and file a bug though i'd be down to try and help reproduce it :)
Comment 17•3 years ago
|
||
It relates to how port names show up in Carla, possibly via the JACK API side of PipeWire. See https://i.imgur.com/XDba5U7.png More likely PW bug I guess, will ask wtay.
Reporter | ||
Comment 18•3 years ago
|
||
Thanks for looking at this bug again!
Indeed, the situation is far better than when the bug was filed: I now see the page title.
The original description states:
- The stream metadata should contain the domain name of the site, and the page title.
- If the <video>/<audio> element provides meta data - e.g. currently playing song for web radios, see bug 778050 and bug 908902 and media.mozGetMetadata(), this should be shown as well, but in a different field, and sanitized.
Compared to current status:
- Page title - the first and most important part - is implemented.
- The domain name is missing. This would be important in cases where the website doesn't properly or correctly identify itself in the page title.
- If I play an mp3 file (audio/mp3, without HTML page), it shows the filename = page title.
- <video>/<audio> metadata (second point above) seems unused. This is particularly interesting for Internet radio stations and other websites which do not change the page title using JS when the song changes.
In all cases, care should be taken to remove all potentially dangerous special characters like \0 before sending this untrusted information to the system. I am not sure whether PulseAudio and all the Pulse applications consider the data to be untrusted in the same way as we consider sites to be potentially hostile. This is particularly important as websites can trigger playing audio at will, and could run exploits this way, if any of the applications in the down-stream chain were not expecting untrusted security-relevant content in the stream title.
Comment 19•3 years ago
|
||
Is it possible to get media.role sent to pulseaudio? To know if it is either stream/music or video?
Comment 20•2 years ago
|
||
It relates to how port names show up in Carla, possibly via the JACK API side of PipeWire. See https://i.imgur.com/XDba5U7.png More likely PW bug I guess, will ask wtay.
Sorry for ~OT, but @Milkii did you end up opening a bug on PipeWire? I would like to see that issue fixed as well!
Updated•2 years ago
|
Description
•