希望我能加上一点信息 Bc 我在IE也有同样的问题 但是找到一个固定的网络
我发现如果我为 IE 使用 FLV fil 并做了一个./ 路径, 那么它就会对 IE 有效 。
所以我从这个开始
<script type="text/javascript">
//<![CDATA[
$(document).ready(function () {
$("#jquery_jplayer_1").jPlayer({
ready: function () {
$(this).jPlayer("setMedia", {
mp4: "video/Soccer.mp4",
webmv: "video/Soccer.webm",
flv: "video/Soccer.flv",
m4v: "video/Soccer.m4v",
ogv: "video/Soccer.ogv",
poster: "video/Soccer.png"
});
},
//error: function (event) {
// console.log(event.jPlayer.error);
// console.log(event.jPlayer.error.type);
//},
swfPath: "add/jplayer.swf",
errorAlerts: true,
supplied: "mp4, webmv, flv, m4v, ogv",
solution: "html,flash",
size: {
width: "640px",
height: "360px",
cssClass: "jp-video-360p"
},
smoothPlayBar: true,
keyEnabled: true
});
$("#jplayer_inspector").jPlayerInspector({ jPlayer: $("#jquery_jplayer_1") });
});
//]]>
</script>
And that was not working i IE, but in FF and Safari, iPhone/iPad.
And ended up with this, thats works 100% in FF, Safari, IE and iPhone/iPad...
<script type="text/javascript">
//<![CDATA[
$(document).ready(function () {
$("#jquery_jplayer_1").jPlayer({
ready: function () {
$(this).jPlayer("setMedia", {
mp4: "video/Soccer.mp4",
webmv: "video/Soccer.webm", //WEBM. works for FF
flv: "../video/Soccer.flv", //FLV. works for IE, but u need ../ in front of the path...
m4v: "video/Soccer.m4v", //M4V. works for FF, Saf, iPhone/iPad
ogv: "video/Soccer.ogv",
poster: "video/Soccer.png"
});
},
//error: function (event) {
// console.log(event.jPlayer.error);
// console.log(event.jPlayer.error.type);
//},
swfPath: "add/jplayer.swf",
errorAlerts: true,
supplied: "mp4, webmv, flv, m4v, ogv",
solution: "html,flash",
size: {
width: "640px",
height: "360px",
cssClass: "jp-video-360p"
},
smoothPlayBar: true,
keyEnabled: true
});
$("#jplayer_inspector").jPlayerInspector({ jPlayer: $("#jquery_jplayer_1") });
});
//]]>