Bug 145609

Summary: [GStreamer] Pulseaudio volume set at 100% when a video is played
Product: WebKit Reporter: Cyriaque S. <cysoun>
Component: MediaAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Major CC: calvaris, mcatanzaro, pnormand, slomo
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: Linux   
See Also: https://bugzilla.gnome.org/show_bug.cgi?id=675217
https://bugs.webkit.org/show_bug.cgi?id=54140
https://bugs.webkit.org/show_bug.cgi?id=118974
https://bugs.webkit.org/show_bug.cgi?id=140287
https://bugs.webkit.org/show_bug.cgi?id=140358
Bug Depends on: 140358    
Bug Blocks:    

Description Cyriaque S. 2015-06-03 11:21:05 PDT
Hi !

When I start a video Youtube (with HTML5) in Epiphany, the volume of PulseAudio is set at 100%. It's really annoying when I use my headphones.
Seems like it happens mainly on Youtube.

----

My configuration:

Epiphany 3.16.1 with WebKit 2.8.3
PulseAudio 6.0
ArchLinux with Gnome 3.16
Comment 1 Michael Catanzaro 2015-06-03 11:36:54 PDT
Cyriaque was able to work around this by disabling flat volumes as described in] https://wiki.archlinux.org/index.php/PulseAudio/Troubleshooting#Per-application_volumes_change_when_the_Master_volume_is_adjusted

So it seems to be the same issue we've always had, but there are so many bug reports and they are all marked as FIXED (or WORKSFORME), I wasn't sure what else to do with this besides file a new bug. Maybe it was working but regressed again?
Comment 2 Xabier Rodríguez Calvar 2015-06-04 01:31:21 PDT
(In reply to comment #1)
> Cyriaque was able to work around this by disabling flat volumes as described
> in]
> https://wiki.archlinux.org/index.php/PulseAudio/Troubleshooting#Per-
> application_volumes_change_when_the_Master_volume_is_adjusted
> 
> So it seems to be the same issue we've always had, but there are so many bug
> reports and they are all marked as FIXED (or WORKSFORME), I wasn't sure what
> else to do with this besides file a new bug. Maybe it was working but
> regressed again?

Unless there is a new regression, Ephy should play HTML5 videos with the latest used volume, so volume shouldn't ramp up, even with flat volumes.

If YouTube sets the volume thru the JS API to 1.0 and that ramps up the volume, that's an expected behavior as per spec, and as per Pulseaudio flat volumes behavior. I won't discuss this any further as there was enough discussing in the other places, like bug 118974. I added a dependency to bug 140358 though as there is where we track the progress of the implementation of Pulseaudio's API.

Cyriaque, please tests with http://www.w3.org/2010/05/video/mediaevents.html and if volume works as I said there, then close this bug and subscribe to bug 140358.
Comment 3 Cyriaque S. 2015-06-04 10:34:21 PDT
Well, that's weird... I can't even play the videos in Epiphany so I can't tell... It's like it loads the video forever and nothing happen. I sometimes have a thumbnail but nothing else.

Beside that, I noticed that Firefox had the same problem with the volume when flat volumes are enabled. It is set to the max when I play the videos. Otherwise, it's okay when I disable flat volumes. Didn't had this before with flat volumes but on this page.
Comment 4 Michael Catanzaro 2015-06-04 10:54:56 PDT
(In reply to comment #3)
> Well, that's weird... I can't even play the videos in Epiphany so I can't
> tell... It's like it loads the video forever and nothing happen. I sometimes
> have a thumbnail but nothing else.

When I try to play YouTube videos, the web process crashes, bug #144099. I wonder why that doesn't affect you. Anyway, we still won't be able to handle YouTube until bug #135972 is fixed; that might be what you're hitting.
Comment 5 Michael Catanzaro 2015-07-08 07:04:33 PDT

*** This bug has been marked as a duplicate of bug 140358 ***