title: RTSP Stream works in VLC but not my VideoView
body: <p>I am trying to stream to my Android Application from an IP Webcam over RTSP, the stream plays successfully via the VLC Android app, but I cannot replicate this in my own application.</p>
  
  <pre><code>if (mediaControls == null) 
  {
      mediaControls = new MediaController(VideoActivity.this);
  }
  
  myVideoView = (VideoView) findViewById(R.id.stream);
  myVideoView.setOnErrorListener(this);
  progressDialog = new ProgressDialog(VideoActivity.this);
  progressDialog.setTitle("Camera Stream");
  progressDialog.setMessage("Loading...");
  progressDialog.setCancelable(false);
  //progressDialog.show();
  
  try 
  {
      myVideoView.setMediaController(mediaControls);
      myVideoView.setVideoURI(Uri.parse(videoSrc));
  } 
  catch (Exception e) 
  {
      Log.e("Error", e.getMessage());
      e.printStackTrace();
  }
  
  myVideoView.requestFocus();
  myVideoView.setOnPreparedListener(new OnPreparedListener() 
  {
      // Close the progress bar and play the video
      public void onPrepared(MediaPlayer mp) 
      {
          //progressDialog.dismiss();
          myVideoView.seekTo(position);
  
          if (position == 0) 
          {
              myVideoView.start();
          } 
          else 
          {
              myVideoView.pause();
          }
      }
  });
  </code></pre>
  
  <p>The activity prompts a "Cannot Play This Video" dialog. According to the Desktop VLC client the stream is MJPG, 320x256, displaying at 320x240, in the decoded format "Planar 4:2:0 YUV full scale." According to the camera's data sheet it is at 30fps.</p>
  
  <p>I have been able to play other RTSP streams with this code, but not the one I need.</p>
  
  <p>I have been trying to figure out how to use <a href="https://wiki.videolan.org/AndroidCompile/" rel="nofollow">libVLC</a> but haven't had much luck so far. Can anyone help me to get this stream into something my application can use?</p>