public static void EnableDisplayCam() { Debug.Log("DisplayCam Enabled"); agora_gaming_rtc.VideoSurface videoSurface = instance.remoteDisplay.GetComponent <agora_gaming_rtc.VideoSurface>(); if (videoSurface != null) { videoSurface.SetEnable(true); videoSurface.SetForUser(0); } else { Debug.LogError("VideoSurface on DisplayCam is not present!"); } }
private void DisableDisplayCam() { Debug.Log("ANOTHER USER DISCONNECTED"); agora_gaming_rtc.VideoSurface videoSurface = remoteDisplay.GetComponent <agora_gaming_rtc.VideoSurface>(); }