我的html中有一个video标签。源码有application/x-mpegURL,rtmp/flv,application/x-mpegURL标签。但在chrome中,它有时可以工作,而在microsoft edge中,它有时不能工作。如果我想听:
<video class="vi video-js" swf="./js/video-js.swf" controls="controls" autoplay="autoplay" preload="auto" width="250" height="190">
<source src='xxxx' type="application/x-mpegURL" />
<source src='xxxx' type="rtmp/flv" />
<source src='xxxx' type="application/x-mpegURL" />
</video>
<script>
$('video,audio').mediaelementplayer({
pauseOtherPlayers: false,
success: function (player, node) {
player.pause()
player.setMuted(true)
}
})
</script>发布于 2016-07-27 10:13:18
试试下面的.通常情况下,MP4确实可以在大多数现代浏览器上工作。我不确定你的.swf是做什么的。我在大多数浏览器上都是这样做的
https://stackoverflow.com/questions/38602565
复制相似问题