I’m migrating some existing Android code to GoogleTV, and I cannot get any HTTP audio streams (Icecast/Shoutcast) to play in a MediaPlayer object. Setting an Icecast URI as the data source for the MediaPlayer works on every device I’ve ever tested (including Android 3.1 tablets), but it does not work on my 3.1 Fishtank device.
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)
I hope this is just a problem with the dev device. There are a lot of existing apps which depend on MP3 streaming. Is it specifically not supported in GoogleTV?
Google TV 2.0 doesn’t support SHOUTcast protocol. Hopefully this feature will be added on future releases.