// Functions ///////////////////////////////////////////////////////////////////////////////////////
IEnumerator LoadVideo(zVideo loadTarget)
{
MediaPlayerCtrl vc = loadTarget.videoPlayerCtrl; // mediaPlayerCtrl we will be messing with
vc.Load(loadTarget.videoUrl); // Load video
while (vc.GetCurrentState() != MediaPlayerCtrl.MEDIAPLAYER_STATE.READY)
{
yield return(false); // Wait until video has been loaded
}
vc.Play();
Debug.Log("Done");
yield return(true);
}