title: Error from Firefox on HTML: typeerror:vlc.playlist is undefined
body: <p>I have written a code for a vlc player in HTML and JavaScript to stream live video, and it works perfectly fine in IE but when I try it in Firefox an error comes up saying <code>typeerror:vlc.playlist is undefined</code> I went over my code over and over and made changes and nothing worked.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
  &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
  
  &lt;head&gt;
      &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
      &lt;title&gt;Vids&lt;/title&gt;
      &lt;link href="main.css" rel="stylesheet" type="text/css" /&gt;
  &lt;/head&gt;
  
  &lt;body onload='player("rtsp://admin:admin@stanthonys.tjcsys.com:8554/CH001.sdp");' id="Video"&gt;
  
  &lt;div id="player"&gt;
      &lt;object type="application/x-vlc-plugin"
        id="vlcplayer"
        align="middle" 
        width="864px"
        height="540px" 
        classid="clsid:9BE31822-FDAD-461B-AD51-BE1D1C159921"&gt;  
        &lt;param name="Volume" value="100" /&gt;
        &lt;param name="AutoPlay" value="true" /&gt;
        &lt;param name="AutoLoop" value="false" /&gt;
      &lt;/object&gt;
  &lt;/div&gt;
  
  &lt;div id="controls"&gt;
    &lt;input type="button" onclick="play();" value="Play" /&gt;
    &lt;input type="button" onclick="pause();" value="Pause" /&gt;
    &lt;input type="button" onclick="stop();" value="Stop" /&gt;
    &lt;input type="button" onclick="mute();" value="Mute" /&gt;
  &lt;/div&gt;
  
  &lt;script type="text/javascript" language="javascript"&gt;
      var vlc = document.getElementById("vlcplayer");
      function player(vid) {
      try {
          var options = new Array(":aspect-ratio=16:10", "--rtsp-tcp", ":no-video-title-show");
        var id = vlc.playlist.add(vid,'Video',options);
        vlc.playlist.playItem(id);
        vlc.video.fullscreen = true;
        //vlc.video.toggleFullscreen();
      }
      catch (ex) {
        alert(ex);
      }
      }       
      function mute(){
      vlc.audio.toggleMute();
    }
  
      function play(){
      vlc.playlist.play();
    }
  
      function stop(){
      vlc.playlist.stop();
    }
  
      function pause(){ 
      vlc.playlist.togglePause();
    } 
  
    function fullscreen(){
      vlc.video.toggleFullscreen();
    }
  
  &lt;/script&gt;
  
  &lt;/body&gt;
  
  &lt;/html&gt;
  </code></pre>
  
  <p>Can anyone see a problem?</p>