americosfacebook / googletv-issues

Automatically exported from code.google.com/p/googletv-issues
0 stars 0 forks source link

Shoutcast/Icecast support for GoogleTV Mediaplayer #5

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
No HTTP streams (icecast/shoutcast) will play through the MediaPlayer class on 
Google TV though the same code works just fine on any other Android device. 

To be specific, these are all MP3 streams (no AAC). I've tested 32, 64, and 
128kbps. I've tested with many different servers, both Icecast and Shoutcast.  
I've tested with a Revue and a Fishtank.

Here is part of the logcat output. 
-------------
11-16 21:46:01.798: I/AVAPIMediaPlayer(142): Found HTTP success. Connection is 
HTTP/1.0, code was 200 
11-16 21:46:01.798: I/AVAPIMediaPlayer(142): Found content type audio/mpeg 
11-16 21:46:01.802: W/AVAPIMediaPlayer(142): Error, reached end of headers 
before finding required fields. 
11-16 21:46:01.802: E/AVAPIMediaPlayer(142): Source encountered an error while 
asynchronously preparing. 
11-16 21:46:01.802: E/MediaPlayer(30735): error (0, 0) 
11-16 21:46:01.802: E/MediaPlayer(30735): start called in state 0 
11-16 21:46:01.802: E/MediaPlayer(30735): error (-38, 0) 
11-16 21:46:01.806: E/MediaPlayer(30735): Error (-38,0) 
--------------

(Judging by some of the other lines I've seen from time to time and some proxy 
logs, it looks like the FFMPEG guts are trying to do a seek-ahead to calculate 
the clip length and timing out. That's my first guess since I interface with 
FFMPEG a lot, but I could be way off.)

Original issue reported on code.google.com by mrdavemo...@gmail.com on 31 Jan 2012 at 1:18

GoogleCodeExporter commented 8 years ago

Original comment by mjo...@google.com on 31 Jan 2012 at 7:17

GoogleCodeExporter commented 8 years ago
Audio streaming works on Google TV. This is a issue with specific stream type. 
Please include test urls to help reproduce this issue.

Original comment by mjo...@google.com on 31 Jan 2012 at 7:33

GoogleCodeExporter commented 8 years ago

Original comment by mjo...@google.com on 31 Jan 2012 at 7:34

GoogleCodeExporter commented 8 years ago
I have yet to find a single stream which works with Google TV, and I've tried 
most of the public streams available.

Here are two test URLs I often use in development.

http://vprbbc.streamguys.net/vprbbc24.mp3
http://u17.di.fm:80/di_goapsy

Original comment by mrdavemo...@gmail.com on 31 Jan 2012 at 7:39

GoogleCodeExporter commented 8 years ago
please try rtsp, http. Those should work. I have converted this to a feature 
request.

Original comment by mjo...@google.com on 31 Jan 2012 at 10:25

GoogleCodeExporter commented 8 years ago
I don't think I explained the issue very well. This is a feature that is 
supported in all non-TV Android versions in the MediaPlayer class. This is the 
original HTTP streaming that was common before the Apple RFC. This protocol is 
in use by a lot of existing apps and the Google TV version breaks 
compatibility. The developer docs should at least note the deviation. (RTSP and 
Apple HTTP are not appropriate for some of our larger projects.)

Original comment by mrdavemo...@gmail.com on 1 Feb 2012 at 2:56

GoogleCodeExporter commented 8 years ago
Thanks for the detailed explanation. 

I changed the status to "Acknowledged" because the eng team was already working 
on it.

I will file a separate docs bugs for adding a note in the documentation.

Original comment by mjo...@google.com on 1 Feb 2012 at 7:30

GoogleCodeExporter commented 8 years ago

Original comment by mjo...@google.com on 5 Apr 2012 at 11:53

GoogleCodeExporter commented 8 years ago

Original comment by kri...@google.com on 3 Jan 2013 at 7:16

GoogleCodeExporter commented 8 years ago
Hi, any progress?

Original comment by hruskozr...@gmail.com on 26 Mar 2013 at 4:32

GoogleCodeExporter commented 8 years ago
It's going to be fixed in an upcoming release. 

Original comment by kri...@google.com on 29 Mar 2013 at 2:13