Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

搜索 | 用户支持

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

Learn More

Firefox (118) does not play certain audio files

  • 9 个回答
  • 1 人有此问题
  • 1 次查看
  • 最后回复者为 Kaj

more options

I have found that Firefox does not play some audio files, for instance on Wikipedia and WaniKani, such as the audio on https://en.wikipedia.org/wiki/Erhu and https://www.wanikani.com/vocabulary/%E9%9F%B3. When inspecting network activity I can see that an attempt is made to load the audio on Wikipedia, but it does not play. On WaniKani however, no attempt is made. (WaniKani uses .webm for sound, maybe that has something to do with it?) The problem appeared after the update to Firefox 118 and persists in private browsing and troubleshooting mode, but does not occur in GNOME Web.

I have found that Firefox does not play some audio files, for instance on Wikipedia and WaniKani, such as the audio on https://en.wikipedia.org/wiki/Erhu and https://www.wanikani.com/vocabulary/%E9%9F%B3. When inspecting network activity I can see that an attempt is made to load the audio on Wikipedia, but it does not play. On WaniKani however, no attempt is made. (WaniKani uses .webm for sound, maybe that has something to do with it?) The problem appeared after the update to Firefox 118 and persists in private browsing and troubleshooting mode, but does not occur in GNOME Web.

被采纳的解决方案

Update: I have fixed the issue myself. Switching media.ffvpx.enabled in about:config back on fixed the issue. I honestly have no clue as to why a toggle related to VP8/9 video codecs affects audio, but it fixed the issue.

定位到答案原位置 👍 1

所有回复 (9)

more options

They both work for me on Ubuntu 23.04 (ogg and webm respectively).

Install ffmpeg:

sudo apt install ffmpeg

or

flatpak install org.freedesktop.Platform.ffmpeg-full

Pick the flatpak runtime that matches firefox (flathub currently uses 22.08).

more options

Update to 118.0.2 since there was a fix related to these formats.

more options

zeroknight said

Update to 118.0.2 since there was a fix related to these formats.

Looks like 118.0.2 has not yet made its way to the Fedora repos. Well, now I know it'll be fine, thank you!

more options

Update: 188.0.2 landed in the Fedora repos, sadly the issue still persists...

more options

Can you play the file in a tab using a data URI:

data:text/html,<audio src="https%3A%2F%2Ffiles.wanikani.com%2Fmin88pyizg5vgfiyyyf9y4cmce0y" controls>
more options

cor-el said

Can you play the file in a tab using a data URI: data:text/html,<audio src="https%3A%2F%2Ffiles.wanikani.com%2Fmin88pyizg5vgfiyyyf9y4cmce0y" controls>

Going to https://files.wanikani.com/2Fmin88pyizg5vgfiyyyf9y4cmce0y only gives an xml file without any style information in both Firefox as well as GNOME Web:

<Error> AccessDenied <Message>Access Denied</Message> <RequestId>D13GCF481VJVW3ZJ</RequestId> <HostId> ePG84W7jh9Cd4RCyUs1/jw3yTyYdTu28Lct5gtLDLIRWLX+D3VCnT6zPuSN9aDfV7cD60VOqy70= </HostId> </Error>

If I go to https://upload.wikimedia.org/wikipedia/commons/3/30/%E6%B1%9F%E6%B2%B3%E6%B0%B4.ogg it does load the file, as the bar is buffering, however it simply does not play.

more options

The point is to paste the full text starting with data: in the location bar and not the URL.

data:text/html,<audio src="https%3A%2F%2Ffiles.wanikani.com%2Fmin88pyizg5vgfiyyyf9y4cmce0y" controls>

This should give you an audio element with a player control.

more options

cor-el said

The point is to paste the full text starting with data: in the location bar and not the URL. data:text/html,<audio src="https%3A%2F%2Ffiles.wanikani.com%2Fmin88pyizg5vgfiyyyf9y4cmce0y" controls> This should give you an audio element with a player control.

Okay thank you for the clarification. Now it gets interesting: this does play fine...

more options

选择的解决方案

Update: I have fixed the issue myself. Switching media.ffvpx.enabled in about:config back on fixed the issue. I honestly have no clue as to why a toggle related to VP8/9 video codecs affects audio, but it fixed the issue.