开发者

IE9 doesn't support <video> tag?

开发者 https://www.devze.com 2023-03-19 06:41 出处:网络
I\'m trying to use the HTML5 video tag to display a video and it works in every browser except IE9, which shows \"Your browser does not support the video tag.\" Tried adding a .htaccess with these 3 l

I'm trying to use the HTML5 video tag to display a video and it works in every browser except IE9, which shows "Your browser does not support the video tag." Tried adding a .htaccess with these 3 lines:

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

but that didn't work. I don't want to use JWPlayer or anything else, simply because I shouldn't have to. 开发者_运维问答Here's the HTML:

<video width="480" heigth="320" controls="controls">
    <source src="videos/test.mp4" type="video/mp4" />
    <source src="videos/test.webm" type="video/webm" />
    <source src="videos/test.ogg" type="video/ogg" />
    Your browser does not support the video tag.
</video>
0

精彩评论

暂无评论...
验证码 换一张
取 消