Bug 163498 - [GStreamer] Sound of html5 videos are set to maximum at epiphany start or new tab/window
Summary: [GStreamer] Sound of html5 videos are set to maximum at epiphany start or new...
Status: RESOLVED CONFIGURATION CHANGED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Media (show other bugs)
Version: Other
Hardware: PC Linux
: P2 Major
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-16 05:51 PDT by Márcio
Modified: 2016-10-23 07:03 PDT (History)
3 users (show)

See Also:


Attachments
some system info (12.40 KB, application/octet-stream)
2016-10-16 05:51 PDT, Márcio
no flags Details
video with volume manualy set (29.14 KB, image/png)
2016-10-17 17:19 PDT, Márcio
no flags Details
new video loade rises the volume to 100% (29.12 KB, image/png)
2016-10-17 17:20 PDT, Márcio
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Márcio 2016-10-16 05:51:24 PDT
Created attachment 291743 [details]
some system info

The sound of html5 videos are set to maximum at each new tab or window of epiphany 3.22.1. If the sound is manually ajusted, new videos at the same tab don't change the volume.
I'm using epiphany on  Arch Linux updated and gnome 3.22.

There is no interesting terminal output, just "Error sending IPC message: broken pipe"

Steps to reproduce:

1- Open epiphany and go to www.youtube.com;
2 - Just play some video;
3 - Open a new tab/window and play some html5 video;
Comment 1 Michael Catanzaro 2016-10-16 10:40:15 PDT
This looks pretty bad.

Please do check to be sure that you have flat-volumes turned off in /etc/pulse/daemon.conf (you probably do and it's probably unrelated, just want to rule this out).
Comment 2 Márcio 2016-10-16 17:03:34 PDT
Michael,

Looking at /etc/pulse/daemon.conf the option is: flat-volumes = no
Comment 3 Xabier Rodríguez Calvar 2016-10-17 03:54:18 PDT
W3C spec mandates that volume is either 100% or the one the last stream had. We perform the last thru pulseaudio so if that can't happen, when we go to 100%, both as per spec. So far we can do nothing, only tell people to disable flat volumes and ensure that they master volume is not 100% either.
Comment 4 Michael Catanzaro 2016-10-17 09:26:14 PDT
Maybe I misunderstood the problem. The system volume is not being raised to 100%, right? I cannot reproduce any such problem here.

Is your issue that the YouTube media player doesn't remember its volume when you open YouTube in another tab? I don't think that's a WebKit bug.
Comment 5 Xabier Rodríguez Calvar 2016-10-17 09:51:25 PDT
(In reply to comment #4)
> Maybe I misunderstood the problem. The system volume is not being raised to
> 100%, right? I cannot reproduce any such problem here.

If "system volume" is raised to 100% then the user is indeed using flat volumes or their master volume is 100%.
Comment 6 Márcio 2016-10-17 17:17:05 PDT
Master volume isn't on 100%. On each new tab or epiphany window with a video play the volome off it rises to 100%. 
On volume control just the item WebKitWebProcess is rising to 100%.

Even each new video on the same tabe rise the volume, first to +- 80 % e a new video turn the volume to 100%.
Please see the gnome volume control print attached.
Comment 7 Márcio 2016-10-17 17:19:40 PDT
Created attachment 291901 [details]
video with volume manualy set
Comment 8 Márcio 2016-10-17 17:20:34 PDT
Created attachment 291902 [details]
new video loade rises the volume to 100%
Comment 9 Márcio 2016-10-17 17:21:18 PDT
Remember that new videos on new tabs/windows rises the volume to 100% too.
Comment 10 Xabier Rodríguez Calvar 2016-10-18 00:50:07 PDT
That is the expected behavior as per spec, ergo, it is not a bug.
Comment 11 Márcio 2016-10-18 02:20:37 PDT
(In reply to comment #10)
> That is the expected behavior as per spec, ergo, it is not a bug.
Even if the master sound is keeping their level, when using a haedset the automatic rise of an app volume can hurt my ears.
That do not happen with any other app. Other browsers ether (Firefox, chrome and opera). 
So there is a bug in the wc3 especs.
Comment 12 Márcio 2016-10-23 07:03:57 PDT
Guys, I've ben using epiphany 3.22 extensively, so I could observe better the behavior of html5 video volume. The automatic changes that I mentioned before, are to line up the app volume with the volume of webplayer of each page. I noted that some video ads - shown before the video come - are reproduced with volume at the maximum, even if the main video has the volume set to lower level. I wasn't able to change the volume of some of them in webplayer. But I think that this is happening just occasionally.

In resume, I am confortable to say that this bug can be closed.
Sorry for the inconvenience.
Thanks for the help.