I need help, or even help finding help. :)
I have an mp3 file that I split into multiple files using
"mediafilesegmenter" which "takes an encoded media file as an input,
wraps it in an MPEG-2 transport stream, and produces a series of
equal-length files from it, suitable for use in HTTP Live Streaming".
I have opened the m3u8 file created by it in several different ways
(quicktime, itunes, ipod touch, rhythmbox on ubuntu) and it plays in
all of them.
However, if I run this code on my phone (AT&T Samsung Galaxy S2
Skyrocket with ICS), it fails:
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Uri uri =
Uri.parse("http://larry-mbp.elm-software.net/~lmeadors/hill/prog_index.m3u8");
setContentView(R.layout.main);
mediaPlayer = MediaPlayer.create(this, uri);
mediaPlayer.setOnErrorListener(new MyOnErrorListener());
mediaPlayer.setOnInfoListener(new MyOnInfoListener());
mediaPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC);
mediaPlayer.start();
}
The URL is on my LAN, but I'm not getting a 404 - the player reads the
m3u8 file, then gets the first file in the playlist and falls over
saying that the file doesn't look like a transport stream.
The MyOnErrorListener and MyOnInfoListener classes simply log the
error numbers and return true.
Here's some of the log (there's a lot of other chatter, but I think
this is the relevant info):
07-20 13:42:45.358: WARN/LiveSession(165): fetchFile
http://larry-mbp.elm-software.net/~lmeadors/hill/prog_index.m3u8
07-20 13:42:45.358: ERROR/LiveSession(165): err is OK[0]
07-20 13:42:45.368: WARN/LiveSession(165): fetchFile
http://larry-mbp.elm-software.net/~lmeadors/hill/fileSequence0.mp3
07-20 13:42:45.378: ERROR/LiveSession(165): err is OK[0]
07-20 13:42:45.428: ERROR/LiveSession(165): This doesn't look like a
transport stream...
If I look at the file information, it sure looks like a transport stream:
$ file fileSequence0.mp3
fileSequence0.mp3: Audio file with ID3 version 2.4.0, contains: MPEG
ADTS, layer III, v1, 128 kbps, 44.1 kHz, JntStereo
The bit rate and sample rate look like they are within acceptable
limits (128 kbps, 44.1 kHz), but still no joy.
Any hints? Where can I go or who can I talk to to get more help on this?
Larry
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en