Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Firefox - Some websites forcing a certain volume percentage?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
eeckwrk99
Apprentice
Apprentice


Joined: 14 Mar 2021
Posts: 163
Location: Gentoo forums

PostPosted: Fri Jan 26, 2024 7:47 pm    Post subject: Firefox - Some websites forcing a certain volume percentage? Reply with quote

I'm using Pipewire and Firefox:

Code:
$ qlist -Iv media-video/pipewire
media-video/pipewire-1.0.0-r1


Code:
$ qlist -Iv www-client/firefox-bin
www-client/firefox-bin-122.0


Code:
$ pactl info
Server Name: PulseAudio (on PipeWire 1.0.0)


I noticed an interesting behavior since the last few days. Maybe I just didn't notice it until now, I'm not sure.

  • Open Firefox and your usual volume control (pavucontrol-qt or built-in Plasma volume applet as far as I'm concerned)
  • In Firefox, go to any Bandcamp or YouTube page and start playing a track / a video
  • In the volume control tool, set Firefox / Tor Browser volume to 100%
  • Seek backward or forward with the Bandcamp/YouTube player: the Firefox volume is automatically set to 89% for Bandcamp and 72% for YouTube (in my case) in the volume control tool


Play/pause doesn't alter volume, only seek operation. I could only reproduce on Bandcamp and YouTube, it doesn't occur with Invidious / Piped or Odysee for example.
The volume is always restored to 89% (Bandcamp) and 72% (YouTube), it doesn't matter if I manually set it to 13%, 60% or 93% before seeking.

Other things:
  • tried to downgrade Firefox from 122.0 to 121.0.1, the issue persists
  • I can reproduce with a fresh Firefox profile on both 121.0.1 and 122.0
  • I can reproduce on my Arch Linux install (Pipewire 1.0.1 / Firefox 122.0)
  • I can reproduce on another Gentoo machine (Pipewire 1.0 / Firefox 122.0)
  • I cannot reproduce with Vivaldi (Chromium based)
  • I cannot reproduce with other programs like mpv or Cantata


I found a few links describing similar behaviors:

Is this a Pipewire issue?
Or do Bandcamp and YouTube websites actually force certain volume percentages? Maybe flipping some Firefox settings in about:config could prevent this?

Thanks.
Back to top
View user's profile Send private message
netfab
Veteran
Veteran


Joined: 03 Mar 2005
Posts: 1897
Location: 127.0.0.1

PostPosted: Sun Jan 28, 2024 4:20 pm    Post subject: Reply with quote

Hi,

Same behavior here with firefox on youtube.
mozilla bug : Volume does not stay where it is manually set using pulseaudio
Back to top
View user's profile Send private message
eeckwrk99
Apprentice
Apprentice


Joined: 14 Mar 2021
Posts: 163
Location: Gentoo forums

PostPosted: Sun Jan 28, 2024 4:39 pm    Post subject: Reply with quote

netfab wrote:
Hi,

Same behavior here with firefox on youtube.
mozilla bug : Volume does not stay where it is manually set using pulseaudio


Thanks for the report and the link.
Back to top
View user's profile Send private message
netfab
Veteran
Veteran


Joined: 03 Mar 2005
Posts: 1897
Location: 127.0.0.1

PostPosted: Sun Jan 28, 2024 4:55 pm    Post subject: Reply with quote

In fact, the volume level value (in pavucontrol) is not random : it seemed to be controlled by the volume level slider of the youtube player.
Try this :

  • open a youtube video in a firefox tab
  • using the youtube player slider, set the volume of the video
  • close the tab (the volume level is saved here)
  • reopen a youtube video in a new tab
  • in pulseaudio/pipewire/volume tool, set the volume of the tab to 80%
  • seek into the video (the volume level will be resetted to the previous saved value)
Back to top
View user's profile Send private message
eeckwrk99
Apprentice
Apprentice


Joined: 14 Mar 2021
Posts: 163
Location: Gentoo forums

PostPosted: Sun Jan 28, 2024 5:05 pm    Post subject: Reply with quote

netfab wrote:
In fact, the volume level value (in pavucontrol) is not random : it seemed to be controlled by the volume level slider of the youtube player.
Try this :

  • open a youtube video in a firefox tab
  • using the youtube player slider, set the volume of the video
  • close the tab (the volume level is saved here)
  • reopen a youtube video in a new tab
  • in pulseaudio/pipewire/volume tool, set the volume of the tab to 80%
  • seek into the video (the volume level will be resetted to the previous saved value)


Can reproduce indeed.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum