Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

- Declaration

public static void FetchVideoInputs(Action<List<CavrnusVideoInputDevice>> onRecvDevices)

- Description

Fetches the available cameras from which the user can stream their video. This function is basically only useful if you wished to build your own version of the default voice/video UI.

- Sample

  public class VideoSelectionMenu : MonoBehaviour
  {
      private void Start()
      {
          CavrnusFunctionLibrary.AwaitAnySpaceConnection(spaceConn => {
              CavrnusFunctionLibrary.FetchVideoInputs(devices => {
                  foreach (var device in devices) {
                      Debug.Log($"{device.Name} found!");
                  }
              });
          });
      }
  }
  • No labels