Hi , I'm trying to change the path of my video playback in my script . everything seems correct but the video doesn't play. here's the related parts of code :
public VideoPlaybackBehaviour video;
void OnGUI(){ if(GUI.Button(new Rect(0,0,100,100),"btn")) { video.m_path = "test.mp4"; video.VideoPlayer.Play(false,0); } }
I'll apprecaite if you can tell me the steps define a new path for the video .
thanks very much
I also trying to change the source of the video clip from the code behind
I don't have the m_path variable in vuforia samples.
In the code i have access to the path but it's read only in VideoController.cs:
videoPlayer.clip.originalPath