admin管理员组文章数量:1379238
I implemented jw player 6 player in my web page. I could able to play mp3 files in jw player in both the browsers ie9 and ie10. But i couldn't able to play MP4 files in both browsers and but it works fine in ie8. Below is my code that i used.
<head runat="server">
<meta http-equiv="Content-Type" content="video/mp4" />
<title>JW Player</title>
<script type="text/javascript" src="JwPlayer/jwplayer.js"></script>
<script type="text/javascript"> jwplayer.key = "Key";</script>
</head>
<body>
<form id="form1" runat="server">
<div align="center">
<div id="container">
Loading the player ...</div>
<script type="text/javascript">
var fileurl = '.mp4';
if (fileurl != '') {
jwplayer("container").setup({
flashplayer: "JwPlayer/jwplayer.flash.swf",
file: fileurl,
autostart: "true",
height: 500,
width: 600
});
} else {
jwplayer("container").setup({
flashplayer: "JwPlayer/jwplayer.flash.swf",
file: "JwPlayer/video.mp4",
autostart: "true",
height: 500,
width: 600
});
}
</script>
</div>
</form>
</body>
Please help me to solve this issue.
I implemented jw player 6 player in my web page. I could able to play mp3 files in jw player in both the browsers ie9 and ie10. But i couldn't able to play MP4 files in both browsers and but it works fine in ie8. Below is my code that i used.
<head runat="server">
<meta http-equiv="Content-Type" content="video/mp4" />
<title>JW Player</title>
<script type="text/javascript" src="JwPlayer/jwplayer.js"></script>
<script type="text/javascript"> jwplayer.key = "Key";</script>
</head>
<body>
<form id="form1" runat="server">
<div align="center">
<div id="container">
Loading the player ...</div>
<script type="text/javascript">
var fileurl = 'https://s3-us-west-1.amazonaws./lyynks-assets/experiment/video/sample.mp4';
if (fileurl != '') {
jwplayer("container").setup({
flashplayer: "JwPlayer/jwplayer.flash.swf",
file: fileurl,
autostart: "true",
height: 500,
width: 600
});
} else {
jwplayer("container").setup({
flashplayer: "JwPlayer/jwplayer.flash.swf",
file: "JwPlayer/video.mp4",
autostart: "true",
height: 500,
width: 600
});
}
</script>
</div>
</form>
</body>
Please help me to solve this issue.
Share Improve this question asked Jun 19, 2013 at 9:14 ArunArun 1,7049 gold badges26 silver badges41 bronze badges1 Answer
Reset to default 7Your issue here is the following:
Your file - https://s3-us-west-1.amazonaws./lyynks-assets/experiment/video/sample.mp4
Has this MIME-TYPE - application/octet-stream
It should be - video/mp4
This should be set on Amazon's end.
The reason this isn't working in IE9 and IE10 is because JW6 defaults to HTML5 mode for browsers that support HTML5 playback, and HTML5 is more strict about MIME-TYPEs than Flash is.
本文标签: javascriptJW Player not playing MP4 video format videos in ie9 and ie10Stack Overflow
版权声明:本文标题:javascript - JW Player not playing MP4 video format videos in ie9 and ie10 - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744065752a2584961.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论