Log in or register to post comments

How to set video path programmatically

March 4, 2015 - 2:50am #1

Hi

   I combined cloud reco and video play back. I have to play different video for different image target. Videos are saved in streaming asset Folder. It working fine when I set path in videoPlayBackBehaviour script in scene. But I have to change video path depends on cloud result. I followed these threads

https://developer.vuforia.com/forum/unity-3-extension-technical-discussion/changing-videoplayback-path-dynamicly

http://https://developer.vuforia.com/forum/unity-3-extension-technical-discussion/sharing-videoplaybackbehaviour-and-loading-runtime

  But video are not playing. Please help to acheive this.

How to set video path programmatically

April 6, 2015 - 9:37pm #5

where you kept your videos?.... we have to keep it in resources folder... Then it will play...

VideoPlaybackBehaviour video = GetComponentInChildren<VideoPlaybackBehaviour> ();
video.m_path = "video.mp4";

 

How to set video path programmatically

April 6, 2015 - 9:16am #4

how did you do it? :D

How to set video path programmatically

March 10, 2015 - 11:33pm #3

Now its working. Thanks for your reply.

How to set video path programmatically

March 5, 2015 - 6:32am #2

Hello, 

I have assigned the path to the video gameobject programmatically by making m_path in VideoPlaybackBehaviour script public and then access it from TrackableEventHandler script at the OnTrackingFound function and assign the path to it. It is really simple but I don't use cloud recognition, I use normal augmentation.

Log in or register to post comments