HTML5-音频标签无法在Firefox中播放 [英] HTML5-Audio-tag not playing in Firefox

查看:74
本文介绍了HTML5-音频标签无法在Firefox中播放的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用音频标签播放作品文件:

I want to use audio-tags to play opus-files:

<audio controls>
  <source src="espeak.opus" type="audio/ogg">
    Your browser does not support the audio element.
</audio>

在本地工作,但在Firefox上无法在服务器上工作: https://tools.wmflabs.org/tts-comparison/

Works locally but with Firefox it does not work on the server: https://tools.wmflabs.org/tts-comparison/

我已经设置了模仿类型,还尝试了Ogg-Vorbis.(Firefox支持opus和Ogg-Vorbis).在Chrome浏览器中可用.

I've set the mimetypes, and also tried Ogg-Vorbis. (opus and Ogg-Vorbis are both supported by Firefox). Works in Chrome.

我想念什么?

推荐答案

原来是Ublock阻止了玩家…

Turned out it was Ublock blocking the players…

这篇关于HTML5-音频标签无法在Firefox中播放的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆