video streaming - Live Stream stops playing on Google TV & Motorola Xoom Tablet in Android
I am sorry if i am posting same question twice... but i am desperate and badly stuck.
I am creating an Android app which will be deployed on Google TV devices & Tablets initially.. My Android application plays live streams of different TV channels.
Channel's Stream Info is:
Codec: H264 - MPEG-4 AVC (i determined the CODEC info by playing the stream in VLC player) Stream url: starts with rtsp://
I haved used the VideoPlayer_demo example, presented on Android developer site, with some changes to load stream asynchronously and catch errors.
I have checked my app on Logitech Google TV device & Motorola Xoom tablet and the issue is on both.
Both devices begin playing stream properly.. then hangs for a few seconds and then begins playing it (i think its downloading the stream???) .. it does this two/three times and then hangs completely. And the video does not play at all.
Our servers also provide streams in Windows Media Video 9 (WMV3) format ... but it was not working at all. I think this format is not supported on Google TV/Android.
Please help me fix this issue OR tell me an alternate way to do so.
LogCat does not show any error. The only warnings it shows are as follows:
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
The last line is a bit suspicious as it recorded in the onCompletion event of MediaPlayer which is called when the end of a media source is reached during playback. I think this event shows that the MediaPlayer has considered the video to have finished, and after this event the video stops playing.
I have uploaded a small demo project here 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.
Thanksandroid video-streaming live-streaming google-tv
this question edited Jan 19 '12 at 9:16 asked Jan 18 '12 at 12:27 Aamir 795 3 19 48 do you see anything in the logs? could you paste them here. Also provide a demo url to test this. – Megha Joshi - GoogleTV DevRel Jan 18 '12 at 21:15 Thanks for the reply. I updated my question and provided a small demo with the link to the stream in it. I thought showing you exactly what i am doing may help you understand the problem. – Aamir Jan 19 '12 at 8:39 @Megha Joshi ... any update??? i am totally depending upon u & ur colleague Les ... i already have sent an email to google-tv-fishtank-team (at) googlegroups dot com describing my situation with a demo URL .. please help – Aamir Jan 20 '12 at 7:31 thanks Aamir, working on it. – Megha Joshi - GoogleTV DevRel Jan 22 '12 at 2:39
I also have exactly the same problem. I think the problem is not around the type of streaming.
I have the same problem on Wifi/Ethernet and http/rtmp/smb streamings. I even download the file and copied it to the memory and still the file stops when playing. That file plays correctly on http streaming by Windows/VLC Media players.
I think this is codec or file container problem. My file has the following header: ftypmp42 isommp42 )moov lmvhd
A sample file can be found in the following location:
this answer answered Feb 25 '13 at 11:03 bsz 261 1 7 Thanks. It was a question i asked quite some time ago. Later we shifted to using HLS streams and it works fine on both. – Aamir Feb 25 '13 at 15:33
- 1一、初识GVR ---- Android VR视频/Google VR for Android /VR Pano/VR Video
- 2二、VR全景图显示器开发 ---- Android VR视频/Google VR for Android /VR Pano/VR Video