hi,
may i know that how to switch video between virtual button?
switch (vb.VirtualButtonName)
{
case "green":
mActiveMaterials.Add(m_TeapotMaterials[3]);
break;
}
can i change it into video playback, means that i swap to another video by touch on the virtual button.
thanks
Hi, have a look at the VideoPlayback sample for Unity (downloadable from the Vuforia SDK download page);
there it shows how to play a video on a texture.
In particular check the VideoPlaybackBehaviour.cs script to see how the material texture is set to a video texture and how the video playback is handled.
Also, check the VideoPlaybackController.cs to see how the video playback is triggered (play/pause, etc.);
in your case you will need to activate the video from your VirtualButton handler, but it should be possible to combine the features of the Video Playback sample with the VirtualButton one.