title: Live Stream stops playing on Google TV & Motorola Xoom Tablet in Android
body: <p>I am sorry if i am posting same question twice... but i am desperate and badly stuck.</p>
  
  <p>I am creating an Android app which will be deployed on Google TV devices &amp; Tablets initially.. My Android application plays live streams of different TV channels.</p>
  
  <p>Channel's Stream Info is:</p>
  
  <p><strong>Codec:</strong> H264 - MPEG-4 AVC (i determined the CODEC info by playing the stream in VLC player)
  <strong>Stream url:</strong> starts with <strong>rtsp://</strong></p>
  
  <p>I haved used the <strong><a href="http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/media/MediaPlayerDemo_Video.html" rel="nofollow">VideoPlayer_demo</a></strong> example, presented on Android developer site, with some changes to load stream asynchronously and catch errors.</p>
  
  <p>I have checked my app on <strong>Logitech</strong> Google TV device &amp; <strong>Motorola Xoom tablet</strong> and the issue is on both.</p>
  
  <p>Both devices begin playing stream properly.. then hangs for a few seconds and then begins playing it (<em>i think its downloading the stream???</em>) .. it does this two/three times and then hangs completely. And the video does not play at all.</p>
  
  <p>Our servers also provide streams in <strong>Windows Media Video 9 (WMV3)</strong> format ... but it was not working at all. I think this format is not supported on Google TV/Android.</p>
  
  <p>Please help me fix this issue OR tell me an alternate way to do so.</p>
  
  <p><strong>Edit:</strong></p>
  
  <p>LogCat does not show any error. The only warnings it shows are as follows:</p>
  
  <pre><code>01-19 13:32:13.319: W/MediaPlayer(678): info/warning (701, 0)
  01-19 13:32:13.328: I/MediaPlayer(678): Info (701,0)
  01-19 13:32:15.428: W/MediaPlayer(678): info/warning (702, 0)
  01-19 13:32:15.428: I/MediaPlayer(678): Info (702,0)
  01-19 13:47:26.148: D/MediaPlayerDemo(678): onCompletion called
  </code></pre>
  
  <p>The last line is a bit suspicious as it recorded in the <strong>onCompletion</strong> event of <strong>MediaPlayer</strong> which is called when the end of a media source is reached during playback. I think this event shows that the <strong>MediaPlayer</strong> has considered the video to have finished, and after this event the video stops playing.</p>
  
  <p>I have uploaded a small demo project <strong><a href="https://skydrive.live.com/redir.aspx?cid=e59127ff3955f781&amp;resid=E59127FF3955F781!111&amp;parid=E59127FF3955F781!109&amp;authkey=!APF1aOoBm4XeMeI" rel="nofollow">here</a></strong> that tries to stream a demo live TV. Its link is in the Project. This demo also hangs and causes the same problem. So by running this demo on your tablet/google tv device, you would know exactly what issue i am facing.</p>
  
  <p>Thanks</p>