Pulseaudio stream name is unset if tab or PiP popout is momentarily muted
Categories
(Core :: Audio/Video: Playback, defect, P3)
Tracking
()
People
(Reporter: promarbler14, Unassigned)
References
Details
Attachments
(1 file)
|
39.34 KB,
text/plain
|
Details |
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/116.0
Steps to reproduce:
I sometimes wish to mute videos (streams) temporarily. I then unmute the tab, sometimes right away.
To view the audio streams that are being fed to PulseAudio, I use the following (Linux) command: pacmd list-sink-inputs | grep -F 'media.name'
I first run this to show the initial audio sources as a baseline.
I then bring up a media stream (Youtube video or stream). For reasons unknown, this cannot be in a Private Window.
To get the media name, I rerun the above command.
Then, to mute, I either:
a. Mute the media via the (YouTube) player itself.
b. Mute the PiP window (via ctrl-down or the button) - this also mutes the player
c. Mute the tab (via the in-tab button)
I then unmute the tab/pip/player to resume audio playback.
To get the (changed) media name, I rerun the above command.
Actual results:
Before muting the media stream, the media name of the audio stream has the expected title (the title of the document). When muting the media stream, the audio stream is removed from Pulseaudio. When later unmuted, a new audio stream (or "sink input") is added to PulseAudio, with the undescriptive name "AudioStream".
One difference: muting the tab while the media is paused will not remove the audio stream until playback resumes, while muting the player removes it immediately.
Seeking in the video or pausing the video for more than 5 seconds creates a new audio stream with the proper media name. Quickly pausing and resuming the video does not affect the audio stream.
In every case where the media name is unset, it always shows up as a new audio stream in PulseAudio.
Expected results:
When later unmuted, a new audio stream should be added to PulseAudio, with the media name set to the document title.
Alternatively, when muting the media, the audio stream should not be removed from Pulseaudio, in line with how pausing the media works. This may also have the benefit of improving stuttering livestreams, which will spam new "sink inputs" when it starts freezing and skipping making it hard to adjust the volume.
Related: https://bugzilla.mozilla.org/show_bug.cgi?id=1808871
Possibly related: https://bugzilla.mozilla.org/show_bug.cgi?id=1743834
Thank you for the report! I can confirm this behavior on nightly. :padenot , would you have any thoughts here?
Comment 2•2 years ago
|
||
Yeah we want to stick the document name on somewhere most probably, and then pass it again when recreating.
Description
•