Bug 254343

Summary: [Pipewire] No sound on youtube.com until video is manually muted then unmuted
Product: WebKit Reporter: Michael Catanzaro <mcatanzaro>
Component: MediaAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: bugs-noreply, kdwkleung, mcatanzaro, philn
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: PC   
OS: Linux   
See Also: https://bugs.webkit.org/show_bug.cgi?id=225857
https://bugs.webkit.org/show_bug.cgi?id=253375
https://bugs.webkit.org/show_bug.cgi?id=253769
Attachments:
Description Flags
debug log none

Description Michael Catanzaro 2023-03-23 10:20:22 PDT
Created attachment 465555 [details]
debug log

Using Epiphany Tech Preview with WebKitGTK 2.40.0, I have no sound when playing videos on youtube.com. Debug log attached.

I have pipewire-0.3.67-1.fc38 on my host system.
Comment 1 Michael Catanzaro 2023-05-01 05:50:43 PDT
So nowadays when this bug occurs, the fix is to simply mute and then unmute the video using the volume control UI in the video widget. I'm not certain, but I don't think that worked at the time that I reported this bug, or I would have mentioned it here.

The current bug seems identical to bug #225857 from last year.

I have pipewire 0.3.69-2.fc38.
Comment 2 Philippe Normand 2023-05-01 06:36:34 PDT
It's not specific to YT. I used the same workaround yesterday on another website that was playing muted...

I think this is some racy pipewire behavior, not sure how to demonstrate it though, but the webkit gst logs show the video is un-muted.
Comment 3 Kdwk 2023-06-04 19:39:37 PDT
This also happens in apps other than Epiphany. I have to do the same in Spotify (from Flathub) and Spot (the GTK Spotify client from Flathub), for example.
Comment 4 Kdwk 2023-06-04 19:40:04 PDT
Besides muting and unmuting, changing the volume in the UI controls also work.
Comment 5 Philippe Normand 2023-06-05 02:01:27 PDT
Can you still reproduce the issues after replacing pulse with alsa?

GST_PLUGIN_FEATURE_RANK=pulsesink:0,alsasink:MAX
Comment 6 Kdwk 2023-06-05 02:26:59 PDT
Cannot reproduce with this env var
Comment 7 Radar WebKit Bug Importer 2023-09-01 08:58:35 PDT
<rdar://problem/114823264>