title: jquery youtube plugin - videos in IE
body: <p>Yesterday I posted a <a href="https://stackoverflow.com/q/8589352/">question</a> about a jQuery YouTube Plugin. Having fixed that problem, I now notice that using this plugin doesn't load the video in Internet Explorer 7 or 8.</p>
  
  <p>I made some minor tweaks and put the code on <a href="http://jsfiddle.net/J4jeW/34/" rel="nofollow noreferrer">jsfiddle</a>.</p>
  
  <p>I'm including the SWFObject, which it says I need to in order to view in IE, but for some reason, it doesn't seem to be loading the video.</p>
  
  <p>Does anyone have an idea?</p>
  
  <p><strong>HTML</strong></p>
  
  <pre><code>&lt;div id="player"&gt;&lt;/div&gt;
  &lt;div class="test"&gt;
       &lt;p&gt;Thank you for watching the video.&lt;/p&gt;
       &lt;p&gt;Your Voucher Code is: &lt;br /&gt;&lt;br /&gt;&lt;span&gt;ABCDEFG&lt;/span&gt;&lt;/p&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p><strong>JavaScript</strong></p>
  
  <pre><code>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(); }});
  </code></pre>