title: What do realize() and prefetch() mean exactly?
body: <p>What do <code>realize()</code> and <code>prefetch()</code> mean exactly?</p>
  
  <p>for Audio files:</p>
  
  <pre><code>InputStream is = getClass().getResourceAsStream("/SMS.mp3");
  player = Manager.createPlayer(is,"audio/mpeg")
  player.realize();
  player.prefetch();
  player.start();
  </code></pre>
  
  <p>for Camera...</p>
  
  <pre><code>player = Manager.createPlayer("capture://video");
  player.realize();
  videoControl = (VideoControl)player.getControl("VideoControl");
  Canvas canvas = new VLCCanvas( videoControl);
  d.setCurrent(canvas);
  player.start();
  </code></pre>
  
  <p>so here in the above code some times it uses only realize() and some times prefetch() too. But what does that mean?</p>