Iniyan
Iniyan

Reputation: 55

Vuforia VideoPlayback Fullscreen

Am new to vuforia and unity. In vuforia's Video playback sample the video plays on the marker and if I double tap and choose Fullscreen from the options it plays in Full screen. I created a UI button and want the video to be played in fullscreen when that UI button is pressed. Please help me out.

Upvotes: 1

Views: 1708

Answers (1)

Dover8
Dover8

Reputation: 595

Get a reference to the VideoPlaybackBehaviour attached to the video. Then on button press you want to call the VideoPlayer.Play method:

//GLOBAL - ASSIGN IN INSPECTOR
public VideoPlaybackBehavior video;

void OnClick() //your button click
{
    video.VideoPlayer.Play(true, 0); //true makes it fullscreen
}

Upvotes: 2

Related Questions