Video not playing on android device

Hello Guys,

I am trying to play a video on the android device using the following function:

Handheld.PlayFullScreenMovie(“videoname.extention”,Color.black,FullScreenMovieControlMode.Hidden);

I have tried two formats for the video

1 > .mp4
2 > .ogv

Still the video is not getting played.

The game crashes as soon as it enters the video play function block.

Can anyone help me figure out what could be the issue. I have kept the video in the “StreamingAssets” folder as said in the unity docs.

the eclipse log shows this :

03-12 10:50:17.212: I/Unity(18545): (Filename: ./Runtime/ExportGenerated/AndroidManaged/UnityEngineDebug.cpp Line: 43)
03-12 10:50:17.212: I/Unity(18545): Video Played
03-12 10:50:17.212: I/Unity(18545):  
03-12 10:50:17.212: I/Unity(18545): (Filename: ./Runtime/ExportGenerated/AndroidManaged/UnityEngineDebug.cpp Line: 43)
03-12 10:50:17.242: I/ActivityManager(1354): Starting activity: Intent { flg=0x10000 cmp=com.product.appname/com.unity3d.player.VideoPlayer (has extras) } from pid 18545
03-12 10:50:17.262: D/AndroidRuntime(18545): Shutting down VM
03-12 10:50:17.262: W/dalvikvm(18545): threadid=1: thread exiting with uncaught exception (group=0x4001d5a0)
03-12 10:50:17.272: E/AndroidRuntime(18545): FATAL EXCEPTION: main
03-12 10:50:17.272: E/AndroidRuntime(18545): android.content.ActivityNotFoundException: Unable to find explicit activity class {com.product.appname/com.unity3d.player.VideoPlayer}; have you declared this activity in your AndroidManifest.xml?
03-12 10:50:17.272: E/AndroidRuntime(18545): 	at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1541)
03-12 10:50:17.272: E/AndroidRuntime(18545): 	at android.app.Instrumentation.execStartActivity(Instrumentation.java:1515)
03-12 10:50:17.272: E/AndroidRuntime(18545): 	at android.app.Activity.startActivityForResult(Activity.java:2988)
03-12 10:50:17.272: E/AndroidRuntime(18545): 	at android.app.Activity.startActivity(Activity.java:3094)
03-12 10:50:17.272: E/AndroidRuntime(18545): 	at com.unity3d.player.UnityPlayer$12.run(Unknown Source)
03-12 10:50:17.272: E/AndroidRuntime(18545): 	at android.os.Handler.handleCallback(Handler.java:587)
03-12 10:50:17.272: E/AndroidRuntime(18545): 	at android.os.Handler.dispatchMessage(Handler.java:92)
03-12 10:50:17.272: E/AndroidRuntime(18545): 	at android.os.Looper.loop(Looper.java:150)
03-12 10:50:17.272: E/AndroidRuntime(18545): 	at android.app.ActivityThread.main(ActivityThread.java:4385)
03-12 10:50:17.272: E/AndroidRuntime(18545): 	at java.lang.reflect.Method.invokeNative(Native Method)
03-12 10:50:17.272: E/AndroidRuntime(18545): 	at java.lang.reflect.Method.invoke(Method.java:507)
03-12 10:50:17.272: E/AndroidRuntime(18545): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:849)
03-12 10:50:17.272: E/AndroidRuntime(18545): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:607)
03-12 10:50:17.272: E/AndroidRuntime(18545): 	at dalvik.system.NativeStart.main(Native Method)

Thanks,
Raviraj.

I’m guessing you are running 3.5 with a custom AndroidManifest.xml that doesn’t include the Video activity?