[android-developers] Re: Any one tried uisng mediaplayer example ,I ma unable to play video file from local directory
Hi guys, I decided to write my own streaming utility for the MediaPlayer. My solution is now documented as a tutorial on my blog including including source code: blog.pocketjourney.com. Please check it out & leave a comment on my blog if you have questions. Best of luck, Anthony --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com 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 -~--~~~~--~~--~--~---
[android-developers] Re: Any one tried uisng mediaplayer example ,I ma unable to play video file from local directory
I can play a video from a local directory just fine. I am using a video podcast intended for the iPhone and I put it in an sdcard image and accessed it at "/sdcard/myVideos/TheVideoPodcast.m4v" Then use VideoView in your layout XML and set its URI programatically in your activity: VideoView vv = (VideoView) findViewById(R.id.video_playback_screen); vv.setVideoURI(Uri.parse(videoFile)); vv.requestFocus(); Hope that helps. Cheryl On Apr 4, 12:42 am, acopernicus <[EMAIL PROTECTED]> wrote: > I was unable to play the streaming .mp4 file as well. > > Curiously, the MediaPlayer example doesn't even seem capable of > streaming an mp4 file out of the box as the url is sets for the > MediaPlayer is just ": > > path = "http://";; > > I updated it to point to my file here: > > path = "http://www.pocketjourney.com/audio.mp4";; > > Has anyone been able to stream an .mp4 file? It's supposed to be > supported but I can't find any proof that this claim is true. > > Anthony --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com 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 -~--~~~~--~~--~--~---
[android-developers] Re: Any one tried uisng mediaplayer example ,I ma unable to play video file from local directory
I was unable to play the streaming .mp4 file as well. Curiously, the MediaPlayer example doesn't even seem capable of streaming an mp4 file out of the box as the url is sets for the MediaPlayer is just ": path = "http://";; I updated it to point to my file here: path = "http://www.pocketjourney.com/audio.mp4";; Has anyone been able to stream an .mp4 file? It's supposed to be supported but I can't find any proof that this claim is true. Anthony --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com 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 -~--~~~~--~~--~--~---