1

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.

4

1 回答 1

2

获取对附加到视频的 VideoPlaybackBehaviour 的引用。然后在按钮按下你想调用 VideoPlayer.Play 方法:

//GLOBAL - ASSIGN IN INSPECTOR
public VideoPlaybackBehavior video;

void OnClick() //your button click
{
    video.VideoPlayer.Play(true, 0); //true makes it fullscreen
}
于 2015-07-29T10:36:33.700 回答