2011-12-22 12 views
0

昨日、jQuery YouTubeプラグインについてquestionを投稿しました。この問題を修正したので、このプラグインを使用してもInternet Explorer 7または8のビデオはロードされません。jquery youtubeプラグイン - IEの動画

少し微調整してコードをjsfiddleに設定しました。

IEで表示するために必要なSWFObjectが含まれていますが、何らかの理由でビデオをロードしていないようです。

アイデアはありますか?

HTML

jQuery(document).ready(function() { 
    jQuery('.test').hide(); 
}); 

    jQuery("#player").tubeplayer({ 
    width: 600, // the width of the player 
    height: 450, // the height of the player 
    allowFullScreen: "true", // true by default, allow user to go full screen 
    swfobjectURL: "http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js", 
    loadSWFObject: true, // if you include swfobject, set to false 
    initialVideo: "VIDEO_ID", // the video that is loaded into the player 
    preferredQuality: "default",// preferred quality: default, small, medium, large, hd720 
    onPlay: function(id){}, // after the play method is called 
    autoPlay: true, 
    onPause: function(){}, // after the pause method is called 
    onStop: function(){}, // after the player is stopped 
    onSeek: function(time){}, // after the video has been seeked to a defined point 
    onMute: function(){}, // after the player is muted 
    onUnMute: function(){}, // after the player is unmuted 
    onPlayerEnded: function(){$('#player').hide(); $('.test').show(); }}); 
+0

downvoteすること自由に感じ、私はコメントすること:)簡単に言えば、IEは、ソフトウェアの最大のがらくたが今まであるので、持って動作します製! – ZolaKt

+0

私はそれを認識していますが、私のユーザベースの95%がIE(6-9)を使用しています。私は単にこれを無視することはできません。 – terrid25

+0

ええ、私は知っています。そこには数回いた。 :)もしも、そのようなことが決して存在しなかったら、もっと簡単になるだろう:)とにかく、ビデオとクロスブラウザーの互換性チェックはhttp://videojs.com/で試してみた。とても満足していた。私はそれがあなたが探しているものではないことを知っていますが、多分それは何とか役立ちます – ZolaKt

答えて

0

[OK]を

<div id="player"></div> 
<div class="test"> 
    <p>Thank you for watching the video.</p> 
    <p>Your Voucher Code is: <br /><br /><span>ABCDEFG</span></p> 
</div> 

はJavaScriptので、私はSWFObject 2.1と再インストールFlash Playerを含まれていました。

これは今IE7、IE8とIE9

にすべての人の助けを

感謝:)

関連する問題