Hi all! I am trying to build another simple video player, but i need to use the MediaPlayer class (because i have to use the getFrameAt() method ).
Well, i've tryied a lot of different things ..... all that i want is to play a local file (located on "/data/data/teste/747.3gp") I've looked here: http://groups.google.com/group/android-developers/browse_thread/thread/3491e3bb0b82c0f1/6ab0e57dee770264?lnk=gst&q=MediaPlayer+prepare+exception#6ab0e57dee770264 http://code.google.com/android/toolbox/apis/media.html http://groups.google.com/group/android-developers/browse_thread/thread/a0a9eb7d21ebb697/a715d71ade0dc2c9?lnk=gst&q=MediaPlayer#a715d71ade0dc2c9 http://groups.google.com/group/android-developers/files http://groups.google.com/group/android-developers/browse_thread/thread/1020d157311e46d/7fd69d975bedaab0?lnk=gst&q=IOException+Media+Player+prepare#7fd69d975bedaab0 http://davanum.wordpress.com/2007/12/29/android-videomusic-player-sample-from-local-disk-as-well-as-remote-urls/ Actually i'm getting this exception when calling mediaPlayer.prepare() for a local file: java.io.IOException at android.media.MediaPlayer.prepare(Native Method) at ufsc.cco.poo.projeto.player.Tocador.playVideo(Tocador.java: 107) at ufsc.cco.poo.projeto.player.Tocador.access$0(Tocador.java:78) at ufsc.cco.poo.projeto.player.Tocador$1.onClick(Tocador.java: 121) at android.view.View.performClick(View.java:1857) at android.view.View.onTouchEvent(View.java:2966) at android.view.View.dispatchTouchEvent(View.java:2706) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:640) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:640) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:640) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:640) at android.policy.PhoneWindow $DecorView.superDispatchTouchEvent(PhoneWindow.java:1193) at android.policy.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java: 876) at android.app.Activity.dispatchTouchEvent(Activity.java:1520) at android.policy.PhoneWindow $DecorView.dispatchTouchEvent(PhoneWindow.java:1177) at android.view.ViewRoot.handleMessage(ViewRoot.java:617) at android.os.Handler.dispatchMessage(Handler.java:80) at android.os.Looper.loop(Looper.java:91) at android.app.ActivityThread.main(ActivityThread.java:3052) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:356) at android.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java: 1547) at android.os.ZygoteInit.main(ZygoteInit.java:1445) at android.dalvik.NativeStart.main(Native Method) Thanks! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

