public bool Play(string filename) { this.filepath = filename; Debug.Log("PLAY VideoPlayerInterface: " + this.filepath); if (VideoPlayerInterface.CanOutputToTexture(filename) == true) { Debug.Log("PlayVideo"); return(VideoPlayer_Play()); } return(false); }
public bool Play(string filename, bool loop) { this.filepath = filename; Debug.Log("PLAY LOOP VideoPlayerInterface: " + this.filepath); if (VideoPlayerInterface.CanOutputToTexture(filename) == true) { Debug.Log("PlayVideo with loop"); VideoPlayer_SetLoop(loop); return(VideoPlayer_Play()); } return(false); }