简体   繁体   English

webm视频格式无法在Firefox中播放

[英]webm video format doesnt play in firefox

i am trying to implement a video tag of html as 我正在尝试将html视频标签实现为

<video controls="controls" tabindex="5">
     <source src="Videos/2.webm" type="video/webm">
      <source src="Videos/2.ogv" type="video/ogg">
      <source src="Videos/2.mp4" type="video/mp4">

      </video>

the individual file of webm Plays into a firefox. webm的单个文件播放为Firefox。 but when i am integrating with my project it shows X sign. 但是当我与我的项目集成时,它会显示X号。 i have made the MIME type Implementation. 我已经完成了MIME类型的实现。 what possible error is there. 有什么可能的错误。 thanks for any assistance. 感谢您的协助。

What type of server your project resides on ie Apache server or anything else? 您的项目驻留在哪种服务器上,即Apache服务器或其他服务器? If it is Apache server, please try the following lines in your .htaccess file. 如果它是Apache服务器,请在.htaccess文件中尝试以下几行。

AddType video/mp4 .mp4 AddType video/ogg .ogv AddType video/webm .webm AddType video / mp4 .mp4 AddType video / ogg .ogv AddType video / webm .webm

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM