澳门银河网上官方赌场_老品牌值得信赖

ITKeyword,专注技术干货聚合推荐

注册 | 登录

video streaming - Live Stream stops playing on Google TV & Motorola Xoom Tablet in Android

itPublisher 分享于

2020腾讯云限时秒杀,爆款1核2G云服务器99元/年!(领取2860元代金券),
地址https://cloud.tencent.com/act/cps/redirect?redirect=1062

2020阿里云最低价产品入口+领取代金券(老用户3折起),
入口地址https://www.aliyun.com/minisite/goods

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.

Edit:

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.

Thanks

android 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

 | 

1 Answers
1

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:

http://marjaaftp.http.internapcdn.net/MARJAAFTP/Images/GMAAssets/Video/299.mov


|
  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

 | 


相关阅读排行


相关内容推荐

最新文章

×

×

请激活账号

为了能正常使用评论、编辑功能及以后陆续为用户提供的其他产品,请激活账号。

您的注册邮箱: 修改

重新发送激活邮件 进入我的邮箱

如果您没有收到激活邮件,请注意检查垃圾箱。

澳门银河网上官方赌场