title: MediaException Using BlackBerry Media Player
body: <p>I'm facing problem playing a video through a URL.  The URL does not have .xyz extension but gives response in inputstream of a .3gpp video. On prefeching media player it throws exception-net.rim.internal.media.rimmediaexception:media unloaded while initialising.</p>
  
  <p>I can't understand the reason of exception, please help me. this is my code-</p>
  
  <pre><code>con = HttpRequestHelper.service(url, null);
  inputStream = con.openInputStream();
  
  final Player player = javax.microedition.media.Manager.createPlayer(inputStream, "video/3gpp");
  player.realize();
  player.prefetch();
  UiApplication.getUiApplication().invokeLater(new Runnable(){
     public void run() {
         VideoControl  videoControl = (VideoControl)player.getControl("VideoControl");
         videoControl.initDisplayMode(VideoControl.USE_GUI_PRIMITIVE, 
                                      "net.rim.device.api.ui.Field");
         videoControl.setVisible(true);         
     }                   
  });
  
  VolumeControl volume = (VolumeControl) player.getControl("VolumeControl");
  volume.setLevel(30);
  //videoControl.setVisible(true);
  player.start();
  </code></pre>