为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

Mute/unmute button in each window tab disappears when there is no sound

  • 5 个回答
  • 1 人有此问题
  • 1 次查看
  • 最后回复者为 jam.gray

more options

Hi all. For years I have used Firefox browser and utilised the little audio mute/unmute buttons that sit in each tab so I can mute/unmute sound coming from a web page without needing to open that particular window first. Since the last FF update I have found the button only appears when there is sound coming from that webpage. Is there anyway to force the mute/unmute button to be always avaialble?

Hi all. For years I have used Firefox browser and utilised the little audio mute/unmute buttons that sit in each tab so I can mute/unmute sound coming from a web page without needing to open that particular window first. Since the last FF update I have found the button only appears when there is sound coming from that webpage. Is there anyway to force the mute/unmute button to be always avaialble?

被采纳的解决方案

Why is the sound intermittent? If the sound pauses or stops, then I think Firefox will remove the icon after 3 seconds. You could extend that time to 30 seconds and see whether that helps. Here's how:

(1) In a new tab, type or paste about:config in the address bar and press Enter/Return. Click the button accepting the risk.

(2) In the search box in the page, type or paste hiding and pause while the list is filtered

(3) Double-click the browser.tabs.delayHidingAudioPlayingIconMS preference to display an editing field, and add a zero so the value changes from 3000 to 30000 then press Enter or click the blue check mark button to save the change.

This value is in milliseconds, so 60000 for 60 seconds, 300000 for 5 minutes, and so on.


I also note that it's possible to use custom style rules in a userChrome.css file to force a mute button on all tabs, but that may be too much clutter. I will note this option here but don't recommend it.

/*** Default sound icon for all tabs not currently playing ***/
.tab-icon-sound:not([soundplaying]):not([muted]) {
  /* Override display: none */
  display: -moz-inline-box !important;
  /* Specify image */
  list-style-image: url(chrome://browser/skin/tabbrowser/tab-audio-playing.svg);
  /* Show 40% gray */
  opacity: 0.4 !important;
}
定位到答案原位置 👍 1

所有回复 (5)

more options

Hi

As far as I am aware, that icon only appears when needed if there is sound possible from that tab.

more options

Thanks for the reply. The mute/unmute toggle used to remain visible when there is no sound emanating from that webpage but now after updating FF the toggle disappears after a few seconds of no sound. I have multiple tab pages open all with intermittent sound and now I can't control them without going into each page individually which it is not possible for me to do without wrecking my workstream.

由jam.gray于修改

more options

Hi,

Right click on the tab  and you can must or unmute when there is no audio playback from the  tab
more options

选择的解决方案

Why is the sound intermittent? If the sound pauses or stops, then I think Firefox will remove the icon after 3 seconds. You could extend that time to 30 seconds and see whether that helps. Here's how:

(1) In a new tab, type or paste about:config in the address bar and press Enter/Return. Click the button accepting the risk.

(2) In the search box in the page, type or paste hiding and pause while the list is filtered

(3) Double-click the browser.tabs.delayHidingAudioPlayingIconMS preference to display an editing field, and add a zero so the value changes from 3000 to 30000 then press Enter or click the blue check mark button to save the change.

This value is in milliseconds, so 60000 for 60 seconds, 300000 for 5 minutes, and so on.


I also note that it's possible to use custom style rules in a userChrome.css file to force a mute button on all tabs, but that may be too much clutter. I will note this option here but don't recommend it.

/*** Default sound icon for all tabs not currently playing ***/
.tab-icon-sound:not([soundplaying]):not([muted]) {
  /* Override display: none */
  display: -moz-inline-box !important;
  /* Specify image */
  list-style-image: url(chrome://browser/skin/tabbrowser/tab-audio-playing.svg);
  /* Show 40% gray */
  opacity: 0.4 !important;
}
more options

Thanks so much Jscher2000, this is exactly what I was looking for. Set it to 3000000 so now I get 50 mins before the icon disappears which is more than enough.

由jam.gray于修改