Search Unity

Having issues with Handheld.PlayFullScreenMovie on iOS

Discussion in 'Scripting' started by spongetron30, Mar 30, 2014.

  1. spongetron30

    spongetron30

    Joined:
    Mar 30, 2014
    Posts:
    2
    Hey Guys!!

    Recently i brought Unity Pro for the Video feature. After having a quick look online i found the code to get video working on iOS and life was good, However, for the past 2 days ive been trying this code and i cant get it to work. Ive tried changing the file format of the movie (its currently .mp4) ive tried putting it in Start, Update, and Awake. Nothing works. When i play the screen just stays blue.

    Just for clarity. I have a scene with just a camera in, this video script is attached to that. The video is stored in StreamingAssets which is in the Assets folder. Here is the code thats in the script at the moment.





    using UnityEngine;
    using System.Collections;

    public class VideoScropt : MonoBehaviour {



    void Awake () {

    }

    void Start () {

    Handheld.PlayFullScreenMovie ("Intro.mp4", Color.black, FullScreenMovieControlMode.CancelOnInput);

    }

    void Update()
    {

    }
    }


    Help me Unity Community. Your my only hope