Ejemplo n.º 1
0
 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!");
     }
 }
Ejemplo n.º 2
0
 private void DisableDisplayCam()
 {
     Debug.Log("ANOTHER USER DISCONNECTED");
     agora_gaming_rtc.VideoSurface videoSurface =
         remoteDisplay.GetComponent <agora_gaming_rtc.VideoSurface>();
 }