title: Controlling quicktime movie from javascript does not work in IE
body: <p>I've got a problem controlling a quicktime movie from javascript. I am embedding a video in my HTML page using <code>&lt;video&gt;</code> HTML5 element - with fallback to quicktime if the browser doesn't support it (e.g. IE 8) (I have a specific requirement of "no flash", but quicktime is allowed).  The video is displayed in a popup; when the popup is being closed, I want to stop video playback.  I can do this successfully in HTML5, but the quicktime control is not working.</p>
  
  <p>My html looks like this:</p>
  
  <pre><code>&lt;video width="360" height="298" autobuffer="autobuffer" controls="controls" id="video" tabindex="0"&gt;
      &lt;source type="video/mp4; codecs=&amp;quot;avc1.42E01E, mp4a.40.2&amp;quot;" src="/data/mmg-demo.mp4"&gt;&lt;/source&gt;
      &lt;source type="video/ogg" src="/data/mmg-demo.ogv"&gt;&lt;/source&gt;
      &lt;object width="360" height="298" id="videoem" codebase="http://www.apple.com/qtactivex/qtplugin.cab" classid="clsid:02bf25d5-8c17-4b23-bc80-d3488abddc6b"&gt;
          &lt;param value="/data/mmg-demo.mp4" name="src"&gt;
          &lt;param value="false" name="autoplay"&gt;
          &lt;param value="true" name="controller"&gt;
          &lt;embed width="360" height="298" name="videoem" pluginspage="http://www.apple.com/quicktime/download/" loop="false" controller="true" autoplay="false" src="../files/380/380523/video.mp4"&gt;
      &lt;/object&gt;
  &lt;/video&gt;
  </code></pre>
  
  <p>The pop-up close javascript function looks like this:</p>
  
  <pre><code>function closePopup {
      //stop html5 playback if it's there
      if(typeof document.getElementById('video').pause == 'function') {
          document.getElementById('video').pause();
      }
      //stop playback of quicktime embed if it's there
      if(document.getElementById('videoem')) {
          document.getElementById('videoem').SetRate(0.0);
      }
      $('#demo-video').fadeOut();
  }
  </code></pre>
  
  <p>I've tested this exact same quicktime code in firefox - and it works fine.  Moreover, examples in other forums that claim to work, do not work in IE 8 (e.g. see <a href="http://lists.apple.com/archives/quicktime-api/2008/Mar/msg00187.html" rel="nofollow">http://lists.apple.com/archives/quicktime-api/2008/Mar/msg00187.html</a> - does not work in IE 8).</p>
  
  <p>Line <code>document.getElementById('videoem').SetRate(0.0)</code> causes <code>Object does not support this property or method</code> error.</p>
  
  <p>I'm not sure where else to look.  Any help is greatly appreciated.</p>