我在我的网页中实现了 jw player 6 player。我可以在浏览器 ie9 和 ie10 的 jw 播放器中播放 mp3 文件。但我无法在两个浏览器中播放 MP4 文件,但它在 ie8 中运行良好。下面是我使用的代码。
<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.com/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>
请帮我解决这个问题。