/
FetchVideoInputs (Unity)
FetchVideoInputs (Unity)
- 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 useful if you wish to build your own version of the default voice/video UI.
- Sample
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!");
});
}
}
, multiple selections available,
Related content
SetLocalUserStreamingState (Unity)
SetLocalUserStreamingState (Unity)
More like this
FetchAudioInputs (Unity)
FetchAudioInputs (Unity)
More like this
BindUserVideoFrames (Unity)
BindUserVideoFrames (Unity)
Read with this
UpdateVideoInput (Unity)
UpdateVideoInput (Unity)
More like this
SetLocalUserMutedState (Unity)
SetLocalUserMutedState (Unity)
Read with this
FetchVideoInputs (Unreal Engine)
FetchVideoInputs (Unreal Engine)
More like this