Mozilla 도움말 검색

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

자세히 살펴보기

HTML5 video doesn't play in Firefox 10

  • 11 답장
  • 33 이 문제를 만남
  • 96 보기
  • 최종 답변자: ruruskyi

more options

Firefox 10 does not play video using the HTML5 video tag.

My page

Firefox 10 does not play video using the HTML5 video tag. [http://home.comcast.net/~s.oravec/index.html My page]

선택된 해결법

@cor-el - Yes I know Thank you, but I have no control over server setting for Comcast, I have tried to point that out to them 50 times.

@willkg - Thanks for showing me how to use Developer Tools.

Thanks for you input it was very useful.

문맥에 따라 이 답변을 읽어주세요 👍 1

모든 댓글 (11)

more options

Hi!

What's going on is that when Firefox does the GET request to both the ogv and webm versions of the video, the web-server is serving it with a mime-type of text/plain which doesn't match the mime-type in the source tag. Pretty sure this mismatch is why it's not showing.

I'm not sure how you can fix this problem since I think it's a problem with the web server configuration. I think it needs to know that .ogv files are video/ogg and .webm files are video/webm.

As an aside, Firefox 10 has a web console that makes it easier to see what's going on--it's what I used just now. If you go to the Tools menu, then choose Web Developer, then choose Web Console, you get a console at the top of Firefox that shows you a lot of information including HTTP requests/responses. If you reload the page, you can see the two GET requests that are problematic. If you click on the url of the GET request in the Web Console, it'll open a window where you can see the full request and response headers.

more options

So would this be a server issue or Firefox issue ?

more options

I think it's a problem with the web server configuration. It needs to know that .ogv files are video/ogg and .webm files are video/webm. Currently the web server is saying that both are text/plain and that's wrong.

Given that you probably have no control over the server configuration, I think you need to work around the issue. It's possible that if you don't specify a type attribute that that might work.

more options

No that didn't work either....I've even tried the videojs script also, but if the server doesn't support ogg or webm its just not going to work .

more options
more options

선택된 해결법

@cor-el - Yes I know Thank you, but I have no control over server setting for Comcast, I have tried to point that out to them 50 times.

@willkg - Thanks for showing me how to use Developer Tools.

Thanks for you input it was very useful.

more options

Did you try to add a .htaccess file to the root of your home page?

AddType audio/ogg oga ogg
AddType video/ogg ogv

You can use the object tag instead if you can't make the server send the correct MIME type.
Firefox is not so restrictive with the object tag.

<video controls="controls" width="720" preload="auto" height="480" poster="toMy/toMy.jpg">
<source src="toMy/toMy.webm" type='video/webm' />
<source src="toMy/toMy.mp4" type='video/mp4' />
<source src="toMy/toMy.theora.ogv" type='video/ogg' />
</video>

Code like this should work (I've tested it with camping.theora.ogv) if you have a player that can handle video/ogg, but I don't know about buffering and preloading.

<object width="720" height="480" data="toMy/toMy.theora.ogv" type="video/ogg"></object>
more options

Not sure if I'm correct here but, I don't have control of the helm captain.

more options

Did you try it anyway with an FTP program or can't you upload files that way?

Coded with only a video tag will leave out users with older browsers (e.g. Firefox 3.6.x) that do not support the video tag.


data:text/html,<object data="http://home.comcast.net/~s.oravec/video/camping.webm" type="application/ogg" width="100%" height="100%"></object>

글쓴이 cor-el 수정일시

more options

Comcast doesn't allow htaccess to be used on PWP

more options

Try different converter, for instance, Miro Video Converter.

I've used AVS Converter and that video didn't on Firefox 10. Then I convert again and it gets working.

Symptoms: Video is loaded successfully. When trying to play it jumps to the end of the video file and never comes back whatever you do.

Note: Before you started check your MIME-type. In your response header you should be able to find: Content-Type: video/webm

Note: If you are using Apache just one line should be added: AddType video/webm .webm Just FYI, there is no difference if you have dot (.) or not. And do not add application/webm MIME-type. Firefox will not accept that.

Note: I've checked also that there is no difference if your video is cached or not. So if you've got "304 Not Modified" that's OK. If you still want to exclude everything that may cause the problem you can set your header to do not cache. Example for Apache, this will force browser to never cache webm files:

<filesMatch "\.(webm)$">
ExpiresActive Off
Header set Cache-Control "private, no-cache, no-store, proxy-revalidate, no-transform"
Header set Pragma "no-cache"
</filesMatch>

글쓴이 ruruskyi 수정일시