ie10 html5 播放器,IE10和HTML5音频(IE10 and HTML5 audio)

IE10和HTML5音频(IE10 and HTML5 audio)

我有一个基于HTML5音频/ JS的示例播放器,可以在Chrome和Firefox中正常工作,但不能在IE10中使用(Win8开发预览中的最新版本)。

现在我有两个问题:

a)使用时倒带当前正在播放的样本

samples[event.b].pause();

samples[event.b].currentTime = 0;

IE10给了我

SCRIPT5022:DOM异常:INVALID_STATE_ERR(11)

在线设置currentTime。 那是什么意思?

b)它不喜欢WAV样本(不会播放任何东西)..只是不相信MS不支持WAV。 谁能确认一下?

I have a HTML5 audio / JS based sample player which works fine in Chrome and Firefox, but not in IE10 (latest one in Win8 dev preview).

Now I have 2 issues:

a) upon rewinding a currently playing sample using

samples[event.b].pause();

samples[event.b].currentTime = 0;

IE10 gives me

SCRIPT5022: DOM Exception: INVALID_STATE_ERR (11)

on the line setting currentTime. What is that supposed to mean?

b) It dislikes WAV samples (won't play anything) .. just can't believe MS doesnt support WAV. Can anyone confirm?

原文:https://stackoverflow.com/questions/9259383

更新时间:2019-08-13 09:05

最满意答案

我没有安装IE10,所以我无法检查myseld。 但这是一个文件格式测试页面,用于测试支持哪些格式:

I don't have an IE10 installed, so i can't check myseld. But here is a file format test page to test which formats are supported:

相关问答

Firefox不支持MP3。 它不会显示回退消息,因为它支持音频标签。 https://developer.mozilla.org/En/Media_formats_supported_by_the_audio_and_video_elements#MPEG_H.264_(AAC_or_MP3) Firefox doesn't support MP3. It won't show the fallback message because it supports the audio tag. htt

...

网络摄像头和麦克风支持不是HTML 5规范的特色 新的API 除了指定标记之外,HTML5还指定脚本应用程序编程接口(API)。 现有的文档对象模型(DOM)接口被扩展并记录了事实上的功能。 还有新的API,例如: 立即模式的画布元素 2D绘图定时媒体播放 离线存储数据库(离线网站 应用程序)文件编辑 拖放交叉文档 消息(web消息)浏览器 历史管理MIME类型和 协议处理器注册。 微观数据 一些新功能是HTML5的一部分,主要是因为没有志愿者将HTML5拆分并保留这些功能的单独规范。 Webca

...

我有完全相同的问题。 我的解决方案:我为audiofile源添加了完整的URL。 不知道为什么,但它有所作为。 这是我的完整代码。 CSS修改只是为了隐藏下载按钮。 但是当我把它拿出来的时候,我没有看到时间表。 很奇怪,但这个代码恰恰适合我。

html5 audio player on iPhone

DownloadButton

If you're just going to download the file,

...

不会喜欢这个答案,但Chromecast根本不支持自签名证书。 它构建在Chromium安全模型中。 如果您可以将证书装载到证书商店中,它就可以工作(Android和Fire平板电脑和电视可以做到这一点),但这可能会有所帮助,但Chromecast(和FireStick)无法做到这一点。 Not gonna like this answer, but Chromecast simply won't support self-signed certs. It is built into the Ch

...

IE 10不支持const 。 将其更改为var 。 这至少会成为不起作用的原因之一。 另外,调试器(在IE10中并不是那么棒)仍然是你的朋友。 我们会称他为'半友'。 用他。 他说什么? IE 10 doesn't support const. Change it to var. That at least will be one reason for it not working. Also, the debugger (which is not that amazing in IE10) i

...

play(),pause()等来自HTMLMediaElement接口,这里记录: http : //www.w3.org/TR/html5/video.html#htmlmediaelement play(), pause() etc come from HTMLMediaElement interface, documented here: http://www.w3.org/TR/html5/video.html#htmlmediaelement

最后我解决了,补充道 AddType video/ogg .ogv

AddType video/mp4 .mp4

AddType video/webm .webm

到.htaccess Finally I solved it, adding AddType video/ogg .ogv

AddType video/mp4 .mp4

AddType video/webm .webm

to .htaccess

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值