title: Playing RTSP stream in Android
body: <p>I'm trying to play video stream on Android device. Unfortunatelly I still get the same problem with MediaPlayer/VideoView. I'm searching for a few days, but still haven't found any working solution.
  For test purposes I'm using MediaPlayer app from API Demos (API Demos/Media/MediaPlayer/Play Streaming Video).
  Here is code snippet for playing stream</p>
  
  <pre><code>mMediaPlayer = new MediaPlayer();
  mMediaPlayer.setDataSource(path);
  mMediaPlayer.setDisplay(holder);
  mMediaPlayer.prepare();
  mMediaPlayer.setOnBufferingUpdateListener(this);
  mMediaPlayer.setOnCompletionListener(this);
  mMediaPlayer.setOnPreparedListener(this);
  mMediaPlayer.setOnVideoSizeChangedListener(this);
  </code></pre>
  
  <p>When I try to play stream I get this info from logcat
  <a href="http://pastebin.com/5Uib5CH5" rel="nofollow">http://pastebin.com/5Uib5CH5</a></p>
  
  <p>This is configuration of ffserver streaming the video</p>
  
  <pre><code>Port 8090
  BindAddress 0.0.0.0
  
  RTSPPort 7654
  RTSPBindAddress 0.0.0.0
  
  MaxHTTPConnections 2000
  MaxClients 1000
  MaxBandwidth 10000
  
  CustomLog -
  NoDaemon
  &amp;lt;Feed feed1.ffm&amp;gt;
  
  File /tmp/feed1.ffm
  FileMaxSize 5M
  
  Launch ffmpeg -i mmsh://tempserv.cam/vid1
  
  ACL allow 127.0.0.1
  
  &amp;lt;/Feed&amp;gt;
  
  &amp;lt;Stream rat1.mpg&amp;gt;
  Feed feed1.ffm
  Format rtp
  NoAudio
  VideoBitRate 56k
  VideoBufferSize 40
  VideoFrameRate 12
  VideoSize 176x144
  VideoGopSize 12
  VideoCodec libx264
  AVPresetVideo baseline
  &amp;lt;/Stream&amp;gt;
  </code></pre>
  
  <p>If anyone can advise me how to fix it, or at least indicate an mistake, I will be grateful.</p>