public IEnumerator Can_Play_Volumetric_Video_With_Valid_Token_And_AVPro_Video() { depthkitClip.Setup(Depthkit.AvailablePlayerType.AVProVideo, Depthkit.RenderType.Photo, new TextAsset()); player.depthKitClip = depthkitClip; //Set these so AVPro doesn't log errors about not having a file path depthkitClip.GetComponent <RenderHeads.Media.AVProVideo.MediaPlayer>().m_AutoOpen = false; depthkitClip.GetComponent <RenderHeads.Media.AVProVideo.MediaPlayer>().m_AutoStart = false; depthkitClip._needToResetPlayerType = true; player.OnVideoStart += EventTriggered; player.SignIn(VALID_STREAMING_TOKEN); player.PlayVideo(VALID_VIMEO_VOLUMETRIC_VIDEO_ID); yield return(new WaitUntil(() => triggered)); Assert.IsFalse(String.IsNullOrEmpty(depthkitClip.GetComponent <RenderHeads.Media.AVProVideo.MediaPlayer>().m_VideoPath)); }
public void _Before() { // Camera setup camObj = new GameObject("Camera"); camObj.AddComponent <Camera>(); camObj.transform.Translate(0, 0, -3); // Player Setup playerObj = new GameObject("Video Player"); player = playerObj.AddComponent <VimeoPlayer>(); player.selectedResolution = StreamingResolution.x360p; player.videoPlayerType = VideoPlayerType.Depthkit; player.autoPlay = false; //Depthkit setup depthkitObj = new GameObject("Depthkit Clip"); depthkitClip = depthkitObj.AddComponent <Depthkit.Depthkit_Clip>(); depthkitClip.Setup(Depthkit.AvailablePlayerType.UnityVideoPlayer, Depthkit.RenderType.Photo, new TextAsset()); player.depthKitClip = depthkitClip; triggered = false; }