Help...please....!  Has anyone got the MediaPlayer examples to
stream .mp4 files????

I can't get the MediaPlayer to stream an .mp4.  I'm about ready to
revert to the .mp3 support for which I can play a file (though it's
quite choppy) and write my own streaming functionality.

I have an .mp4 that is accessible using IE & FireFox but still cannot
get the MediaPlayer to stream the .mp4 file.

The .mp4 file is here:  http://www.pocketjourney.com/audio.mp4

I'll leave the file there for awhile so people can test against it.

I'm even using the example MediaPlayer source provided by the Google
team but STILL NO LUCK getting an .mp4 to stream.

I currently get this error:

ERROR/MediaPlayer(596): error: null
ERROR/MediaPlayer(596): java.io.IOException
ERROR/MediaPlayer(596):     at
android.media.MediaPlayer.prepare(Native Method)
ERROR/MediaPlayer(596):     at
com.google.android.samples.media.MediaPlayer_Video.playVideo(MediaPlayer_Video.java:
87)
ERROR/MediaPlayer(596):     at
com.google.android.samples.media.MediaPlayer_Video.access
$1(MediaPlayer_Video.java:58)
ERROR/MediaPlayer(596):     at
com.google.android.samples.media.MediaPlayer_Video
$1.onClick(MediaPlayer_Video.java:101)
ERROR/MediaPlayer(596):     at
android.view.View.performClick(View.java:1857)
ERROR/MediaPlayer(596):     at
android.view.View.onTouchEvent(View.java:2966)
ERROR/MediaPlayer(596):     at
android.widget.TextView.onTouchEvent(TextView.java:2850)
ERROR/MediaPlayer(596):     at
android.view.View.dispatchTouchEvent(View.java:2706)

Curiously, the MediaPlayer example doesn't even seem capable of
streaming an mp4 file out of the box as the url set for the
MediaPlayer is just: path = "http://....";;

I updated that line to point to my file here: path = "http://
www.pocketjourney.com/audio.mp4";

But still NO SUCCESS....yes the capital letters indicate that this
lack of even basic audio support has been the biggest waste of my time
for my Android project.

Someone please help reduce my stress levels.

Anthony
--~--~---------~--~----~------------~-------~--~----~
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]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to