I have noticed from the documentation of the nightly builds that the native.newVideo is now supported in Android devices. I really need to get this running. But on my tests it is not.
When I try to get a video playing on Android I get this error, using version 2013.1202.
W/dalvikvm( 7618): threadid=1: thread exiting with uncaught exception (group=0x40f932a0) E/SurfaceFlinger( 305): SurfaceFlinger translucent=0 isOpaque=1 isExternalDisplayLayer=0 isExternalBlockLayer0 E/SurfaceFlinger( 305): SurfaceFlinger translucent=1 isOpaque=0 isExternalDisplayLayer=0 isExternalBlockLayer0 E/SurfaceFlinger( 305): SurfaceFlinger translucent=0 isOpaque=1 isExternalDisplayLayer=0 isExternalBlockLayer0 D/KeyguardViewMediator( 325): setHidden false E/AndroidRuntime( 7618): FATAL EXCEPTION: main E/AndroidRuntime( 7618): java.lang.IllegalStateException E/AndroidRuntime( 7618): at android.media.MediaPlayer.prepareAsync(Native Method) E/AndroidRuntime( 7618): at android.widget.VideoView.openVideo(VideoView.java:239) E/AndroidRuntime( 7618): at android.widget.VideoView.access$2000(VideoView.java:51) E/AndroidRuntime( 7618): at android.widget.VideoView$6.surfaceCreated(VideoView.java:478) E/AndroidRuntime( 7618): at android.view.SurfaceView.updateWindow(SurfaceView.java:615) E/AndroidRuntime( 7618): at android.view.SurfaceView.access$000(SurfaceView.java:86) E/AndroidRuntime( 7618): at android.view.SurfaceView$3.onPreDraw(SurfaceView.java:178) E/AndroidRuntime( 7618): at android.view.ViewTreeObserver.dispatchOnPreDraw(ViewTreeObserver.java:707) E/AndroidRuntime( 7618): at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1936) E/AndroidRuntime( 7618): at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1105) E/AndroidRuntime( 7618): at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:4462) E/AndroidRuntime( 7618): at android.view.Choreographer$CallbackRecord.run(Choreographer.java:725) E/AndroidRuntime( 7618): at android.view.Choreographer.doCallbacks(Choreographer.java:555) E/AndroidRuntime( 7618): at android.view.Choreographer.doFrame(Choreographer.java:525) E/AndroidRuntime( 7618): at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:711) E/AndroidRuntime( 7618): at android.os.Handler.handleCallback(Handler.java:615) E/AndroidRuntime( 7618): at android.os.Handler.dispatchMessage(Handler.java:92) E/AndroidRuntime( 7618): at android.os.Looper.loop(Looper.java:137) E/AndroidRuntime( 7618): at android.app.ActivityThread.main(ActivityThread.java:4895) E/AndroidRuntime( 7618): at java.lang.reflect.Method.invokeNative(Native Method) E/AndroidRuntime( 7618): at java.lang.reflect.Method.invoke(Method.java:511) E/AndroidRuntime( 7618): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:994) E/AndroidRuntime( 7618): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:761) E/AndroidRuntime( 7618): at dalvik.system.NativeStart.main(Native Method) E/SurfaceFlinger( 305): SurfaceFlinger translucent=0 isOpaque=1 isExternalDisplayLayer=0 isExternalBlockLayer0 E/SurfaceFlinger( 305): SurfaceFlinger translucent=1 isOpaque=0 isExternalDisplayLayer=0 isExternalBlockLayer0 E/SurfaceFlinger( 305): SurfaceFlinger translucent=1 isOpaque=0 isExternalDisplayLayer=0 isExternalBlockLayer0 E/SurfaceFlinger( 305): SurfaceFlinger translucent=0 isOpaque=1 isExternalDisplayLayer=0 isExternalBlockLayer0
Using today’s version 1208, it does not crash, but the video won’t open.
Thanks,
-a