Open Bug 1893222 Opened 1 year ago Updated 1 year ago

Muted pinned tab is playing audio

Categories

(Core :: Audio/Video: Playback, defect)

defect

Tracking

()

People

(Reporter: sfoster, Unassigned)

Details

Nightly, Ubuntu 22.04 using Wayland. I have a pinned tab with https://dnbradio.com/player/stations/1/ loaded which has an audio player on the page. It tends to start itself playing when I open my laptop, despite me having stopped the stream (by clicking the page's pause button.). Today it started playing out of the blue so I clicked mute, and it continued playing.

I got this profile using the media presets on about:logging. The music is playing the whole time. I select the tab and unmute and mute it again - still playing. https://share.firefox.dev/3w9qdW2

The media code is behaving as usual, it would be great to have the same logs, but with "AudioChannel:4" added to the list. Zeroing in on the range can be done by checking for the click event on the mute icon in the parent process.

As a result of muting a tab, e.g. the audio callbacks should stop.

Flags: needinfo?(sfoster)

Here's a new logging profile with AudioChannel:4 added. https://share.firefox.dev/3UvQ17Y
I just right-clicked the pinned tab to unmute and then mute again. The music from that tab was playing the whole time.

Flags: needinfo?(sfoster)

Hmm there was still no audio channel logging in your profiled result, did you add that from about:logging? It should be recorded in the main thread, but I didn't see any. Even the media element logs looks like missing. (not completed).

Could you help me do it again by selecting media playback preset first, then add AudioChannel:5 again? (also make sure that AudioChannel:5 appears on Currently enabled log modules section)

In addition, does muting/unmuting work on other websites? or only fail on dnbradio? would all audio on that website fail, or only certain audio? I couldn't reproduce this on my Windows 11.

Thanks!

Flags: needinfo?(sfoster)

This seems to be tightly coupled to going into and coming out of the sleep/suspend state on Ubuntu. Which might even be hardware specific as that in turn builds on device drivers as I understand it. If that's the case, will the about:logging settings contain clues? I have been able to reproduce with a zoom recording on https://mozilla.hosted.panopto.com/ so I don't think its specific to a particular site. I don't have more logs to share yet - I want to reproduce on a clean(er) profile. I did just try to reproduce in chromium but nothing so far. Leaving my need-info for now.

It's just a normal bug most probably. If you can reproduce on Linux maybe just get us a pernosco recording.

Severity: -- → S3

I just had this kinda happen again. Not sure if its the same issue or not. I had a tab open again to dnbradio.com, but the audio on there was not playing - I had intentionally stopped it before shutting my laptop. Later I opened my laptop and spent some time browsing. Then my wifi connection dropped, and when it came back up, the dnbradio page automatically started playing - it was not an active tab and I had not interacted with it since stopping the audio stream earlier today. Sorry, no profile recorded.

This morning, as I opened my laptop my music started playing. Keyboard mute didn't work until I logged in (unlocked) This time it had nothing to do with firefox - I had been listening to it through Rhythmbox, a desktop app. So while there might be a firefox component to this bug, assuming these things are related its at least partly a OS/driver issue.

Flags: needinfo?(sfoster)
You need to log in before you can comment on or make changes to this bug.