仅在 IE:HTML5 音频标签中给出 MEDIA_ERR_SRC_NOT_SUPPORTED 当同一音频播放不止一次时
ONly in IE:HTML5 audio tag giving MEDIA_ERR_SRC_NOT_SUPPORTED when same audio is played more than once
我正在使用音频标签在我的网页中播放歌曲。在 chrome 和 firefox 中一切正常。但在 IE 中我观察到以下问题。
第一次播放任何音频。但是,如果在此之后播放任何音频,包括已经播放的音频,请给出 error4:MEDIA_ERR_SRC_NOT_SUPPORTED。
我在页面中有超过 5 个音频
- 音频源设置为来自 url 来自服务器的动态。
- 音频加载在 play() 之前被调用;
- html5 网页添加doctype
如有任何帮助,我们将不胜感激。
谢谢。
I Solved the Issue by using Audio Object in JavaScript instead of using audio tag in html.
eg: var aud = new Audio();
aur.src = audioUrl;
aud.load();
我正在使用音频标签在我的网页中播放歌曲。在 chrome 和 firefox 中一切正常。但在 IE 中我观察到以下问题。
第一次播放任何音频。但是,如果在此之后播放任何音频,包括已经播放的音频,请给出 error4:MEDIA_ERR_SRC_NOT_SUPPORTED。
我在页面中有超过 5 个音频
- 音频源设置为来自 url 来自服务器的动态。 - 音频加载在 play() 之前被调用;
- html5 网页添加doctype
如有任何帮助,我们将不胜感激。
谢谢。
I Solved the Issue by using Audio Object in JavaScript instead of using audio tag in html.
eg: var aud = new Audio();
aur.src = audioUrl;
aud.load();