Dear Joshua,
on the Sony xperia sola (android phone) the return to app on complete function doesn’t work. the movie freezes on the last frame and does not return to the app. I m also testing on a Google Nexus S there it works fine.
The back button also doesnt work, the movie freezes, when you press it, and stays in front of the app. You can only hear the app continue behind the frozen frame.
I m afraid this is the case on many androids…
I start the movie with:
media.playVideo( “movie1.mp4”, system.ResourceDirectory, false, onCompleteHandler)
we get this stack-trace alot:
java.lang.NullPointerException at com.ansca.corona.VideoActivity$1.onCompletion(VideoActivity.java:48) at android.widget.VideoView$3.onCompletion(VideoView.java:345) at android.media.MediaPlayer$EventHandler.handleMessage(MediaPlayer.java:1528) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:137) at android.app.ActivityThread.main(ActivityThread.java:4447) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551) at dalvik.system.NativeStart.main(Native Method)
To create the mp4’s we used MediaEncoder with this settings:
H.264 Android Phone & Tablet - 480p 25 640\*480, 25 fps, Progressive VBR, 2 pass, Target 0.50 Mbps, Max 0.80 Mbps AAC, 128 kbps, 44 kHz, Stereo