Hi I am trying to play the streaming video using the API demo application. I set the path to mp4 link from the web.
when i run it with Nexsus 1 (SDK 2.2.1) it is working as expected but on HTC Dream (SDK 1.5) it throws the following exception: 10-04 10:46:42.073: ERROR/ZL(3984): error: Prepare failed.: status=0x1 10-04 10:46:42.073: ERROR/ZL(3984): java.io.IOException: Prepare failed.: status=0x1 10-04 10:46:42.073: ERROR/ZL(3984): at android.media.MediaPlayer.prepare(Native Method) 10-04 10:46:42.073: ERROR/ZL(3984): at com.example.android.apis.media.MediaPlayerDemo_Video.playVideo(MediaPlayerDemo_Video.java: 109) 10-04 10:46:42.073: ERROR/ZL(3984): at com.example.android.apis.media.MediaPlayerDemo_Video.surfaceCreated(MediaPlayerDemo_Video.java: 154) 10-04 10:46:42.073: ERROR/ZL(3984): at android.view.SurfaceView.updateWindow(SurfaceView.java:352) 10-04 10:46:42.073: ERROR/ZL(3984): at android.view.SurfaceView.dispatchDraw(SurfaceView.java:259) 10-04 10:46:42.073: ERROR/ZL(3984): at android.view.ViewGroup.drawChild(ViewGroup.java:1534) 10-04 10:46:42.073: ERROR/ZL(3984): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1278) 10-04 10:46:42.073: ERROR/ZL(3984): at android.view.ViewGroup.drawChild(ViewGroup.java:1534) 10-04 10:46:42.073: ERROR/ZL(3984): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1278) 10-04 10:46:42.073: ERROR/ZL(3984): at android.view.View.draw(View.java:5841) 10-04 10:46:42.073: ERROR/ZL(3984): at android.widget.FrameLayout.draw(FrameLayout.java:352) 10-04 10:46:42.073: ERROR/ZL(3984): at android.view.ViewGroup.drawChild(ViewGroup.java:1536) 10-04 10:46:42.073: ERROR/ZL(3984): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1278) 10-04 10:46:42.073: ERROR/ZL(3984): at android.view.ViewGroup.drawChild(ViewGroup.java:1534) 10-04 10:46:42.073: ERROR/ZL(3984): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1278) 10-04 10:46:42.073: ERROR/ZL(3984): at android.view.View.draw(View.java:5841) 10-04 10:46:42.073: ERROR/ZL(3984): at android.widget.FrameLayout.draw(FrameLayout.java:352) 10-04 10:46:42.073: ERROR/ZL(3984): at com.android.internal.policy.impl.PhoneWindow $DecorView.draw(PhoneWindow.java:1898) 10-04 10:46:42.073: ERROR/ZL(3984): at android.view.ViewRoot.draw(ViewRoot.java:1217) 10-04 10:46:42.073: ERROR/ZL(3984): at android.view.ViewRoot.performTraversals(ViewRoot.java:1030) 10-04 10:46:42.073: ERROR/ZL(3984): at android.view.ViewRoot.handleMessage(ViewRoot.java:1482) 10-04 10:46:42.073: ERROR/ZL(3984): at android.os.Handler.dispatchMessage(Handler.java:99) 10-04 10:46:42.073: ERROR/ZL(3984): at android.os.Looper.loop(Looper.java:123) 10-04 10:46:42.073: ERROR/ZL(3984): at android.app.ActivityThread.main(ActivityThread.java:3948) 10-04 10:46:42.073: ERROR/ZL(3984): at java.lang.reflect.Method.invokeNative(Native Method) 10-04 10:46:42.073: ERROR/ZL(3984): at java.lang.reflect.Method.invoke(Method.java:521) 10-04 10:46:42.073: ERROR/ZL(3984): at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:782) 10-04 10:46:42.073: ERROR/ZL(3984): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540) 10-04 10:46:42.073: ERROR/ZL(3984): at dalvik.system.NativeStart.main(Native Method) any idea? -- 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en