- 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 wish to build your own version of the default voice/video UI.
- Sample
Code Block | ||
---|---|---|
| ||
public class VideoSelectionMenu : MonoBehaviour { private void Start() { CavrnusFunctionLibrary.AwaitAnySpaceConnection(DisplayVideoDevices); } private void DisplayVideoDevices(CavrnusSpaceConnection spaceConnection) { CavrnusFunctionLibrary.FetchVideoInputs(devices => { foreach (var device in devices) Debug.Log($"{device.Name} found!"); }); } } |