The code following is from ApiDemo.
path = "http://f.dongmuzhi.com/zzzfuck0O6/2007cMar/
21z_8_feifeifei/8.wma";
// Create a new media player and set the listeners
mMediaPlayer = new MediaPlayer();
mMediaPlayer.setDataSource(path);
mMediaPlayer.setDisplay(holder);
mMediaPlayer.prepare();
mMediaPlayer.setOnBufferingUpdateListener(this);
mMediaPlayer.setOnCompletionListener(this);
mMediaPlayer.setOnPreparedListener(this);
mMediaPlayer.setAudioStreamType
(AudioManager.STREAM_MUSIC);
This is the error code.
04-25 13:56:31.720: ERROR/MediaPlayerDemo(441): error: Prepare
failed.: status=0xFFFFFFF6
04-25 13:56:31.720: ERROR/MediaPlayerDemo(441): java.io.IOException:
Prepare failed.: status=0xFFFFFFF6
If I set the path with a http://*.mp3 address, that's OK.
Why .wma can't be displayed?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---