ie11 html5播放器卡,html - IE11 HTML5 Video Error - Stack Overflow

博主在使用HTML5的video标签时遇到问题,视频在Firefox上正常播放,但在Chrome中只有音频没有视频显示,IE11则报出'Unsupported video type or invalid filepath'错误。已经检查了文件扩展名,更新了httpd.conf文件添加了正确的MIME类型,并尝试解决浏览器兼容性问题,但问题依旧存在。寻求解决方案。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

I've had a look but I can't see a answer for this one.

I'm using the HTML5 video tag on my website which is currently on XAMPP/ Appache. In Firefox it works perfectly but in Chrome it only plays the audio from the video and not the video itself and in IE11 it comes up with the error "Unsupported video type or invalid file path".

I've checked in the developer tools and the browsers appear to be reading the file extension correctly.

I've updated my httpd.conf file with the following...

AddType video/ogg .ogv

AddType video/mp4 .mp4

AddType video/webm .webm

...so it shouldn't be a MIME type issue.

And I've added several file type options as follows:

Sorry! Your web browser does not support HTML5

Which I believe should deal with any incompatibility issues. I even tried converting the files a second time to make sure there was nothing wrong with them... I'm now at a loss.

Anyone out there have any suggestions?

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值