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!

Mozilla 도움말 검색

고객 지원 사기를 피하세요. 저희는 여러분께 절대로 전화를 걸거나 문자를 보내거나 개인 정보를 공유하도록 요청하지 않습니다. "악용 사례 신고"옵션을 사용하여 의심스러운 활동을 신고해 주세요.

Learn More

video tag doesn't work

  • 2 답장
  • 5 이 문제를 만남
  • 1 보기
  • 최종 답변자: cor-el

more options

I don't know why, but a video doesn't play on Firefox. This is the code:

<video id="video-element" preload="auto" loop="loop" autoplay="true" class="bg-video" data-video-width="1280" data-video-height="720">
   <source src="video.webm" type="video/webm"></source>
   <source src="video.ogv" type="video/ogg"></source>
   <source src="video.mp4" type="video/mp4"></source>
  Your browser does not support the <code>video</code> element.
</video>

I have all the formats, I used http://firefogg.org for that. When I try it on local computer, it works, but on the server doesn't.

Could anyone explain the problem, please?

I don't know why, but a video doesn't play on Firefox. This is the code: <pre><nowiki><video id="video-element" preload="auto" loop="loop" autoplay="true" class="bg-video" data-video-width="1280" data-video-height="720"> <source src="video.webm" type="video/webm"></source> <source src="video.ogv" type="video/ogg"></source> <source src="video.mp4" type="video/mp4"></source> Your browser does not support the <code>video</code> element. </video> </nowiki></pre> I have all the formats, I used http://firefogg.org for that. When I try it on local computer, it works, but on the server doesn't. Could anyone explain the problem, please?

글쓴이 cor-el 수정일시

모든 댓글 (2)

more options

Strange, but the code is not shown. Should I write it in another format?

Anyways, I made a screenshot.

글쓴이 frecklyy 수정일시

more options

Is the server configured to send this file with a correct MIME type?

Does it work if you open the URL of a WebM or Ogg movie via the location bar?