Log in or register to post comments

VideoPlayback : Need some help

February 20, 2013 - 8:49am #1


Hi , here is my problem , i want to play an video by augmented reality with videoplayback ....

So here what i've done : 

1) i put an AR camera 

2) i put An image target ( i've done other project on vuforia for android before so i know how to get it work )

3) i import an .mp4 in unity and use these 2 type of code  

      a )       var mov: MovieTexture = renderer.material.mainTexture;

When i click on paly , the video work well but impossible to export the .apk ..... i'v got some error that i don't understand and correct 
     b )      function Start () {
   Handheld.PlayFullScreenMovie ("3LP_INTERNE_car_porsche_test.mp4", Color.black, FullScreenMovieControlMode.CancelOnInput);

I try this too cause i found on some unit forum that MovieTexture seems to not work on Android .....

But with this B) code , my video doens't launch ... don't understand why . 

i put my .mp4 in StreamingAssets/QCAR/video.mp4


If someone can help me with some solution it will be very helpfull :) Thanks 

VideoPlayback : Need some help

February 21, 2013 - 3:33am #5

hi corentin,

I think Alessandro answered the same question here:


...reproduced below for convenience.





February 5, 2013 - 1:49pm #4


File is called EE_Full.mov and in the streamingassets folder so i have "StreamingAssets/EE_Full.mov"

if the file is  "StreamingAssets/EE_Full.mov", then you should put just "EE_Full.mov" in the Path box

(please read again carefully my previous message)


VideoPlayback : Need some help

February 21, 2013 - 2:07am #4

Here is some screenshot of my probleme ; 







So first , my project in unity , with the path of my video ( .mp4)

Second When i go in play mode , nothing happen 

and finaly , the error when i try to export in Android

VideoPlayback : Need some help

February 21, 2013 - 1:41am #3

Ok i'm trying this , but for the path i don't know what i have to write , i tried this : 

Assets\StreamingAssets\VideoAR_Test  or 

Assets\StreamingAssets\VideoAR_Test.mp4 or

C:\Users\LP33\Desktop\AR_Video\Assets\StreamingAssets or



but it didn't worked ... 


Someone Can help me ? 

VideoPlayback : Need some help

February 20, 2013 - 9:06am #2


Hi there,

If you are working in Unity (which is appears you are), this isn't how VideoPlayback is handled in Unity/Vuforia (at least not on iOS, pretty sure that's the case for Android too).  You can't use standard movie assets and the fullscreen playback feature is only Available in Unity - Android Pro.

I could be sort of mistaken about a few things BUT if you download the VideoPlayback Example Unity Package for Unity this will be much easier.  Your best bet is to use the Video Prefab from the Prefab folder to get started.  Then modify the prefab you've added to your marker (usually the path name to the file in your streaming assets folder).  Be careful of your codec, use the same one in the example, double check whether it's mp4 for Android (or whatever they are using in the sample file).

Hope this helps.


Log in or register to post comments