Log in or register to post comments

video playback swap by virtual button

December 1, 2012 - 10:57pm #1

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

 

 

video playback swap by virtual button

December 3, 2012 - 7:35am #2

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.

 

Log in or register to post comments