Search Unity

Android Video Playback

Discussion in 'Scripting' started by benmncelly, Sep 19, 2014.

  1. benmncelly

    benmncelly

    Joined:
    Mar 27, 2013
    Posts:
    4
    Having some trouble getting a video to play on an android device.

    Some Details:
    > UNITY 4.6 BETA 17
    > I have a compatible mp4 video, tested on device
    > video is in the "StreamingAssets" folder of my project
    > Script is applied to camera, only thing in scene
    > Pushing compiled APK to device to test
    > Sample Video (Feel free to test code/video to see if it is just me/the beta/my dumbness...)

    Script:
    Code (JavaScript):
    1. function Start () {
    2. Handheld.PlayFullScreenMovie ("ddb.mp4", Color.black, FullScreenMovieControlMode.CancelOnInput, FullScreenMovieScalingMode.AspectFill );
    3. }