/
SetLocalUserStreamingState (Unity)

SetLocalUserStreamingState (Unity)

- Declaration

public static void SetLocalUserStreamingState(this CavrnusSpaceConnection spaceConnection, bool streaming)

- Description

Sets if the local user is sending video or not. As of now, there is no functionality available for initiating or terminating video streams of other users.

Note that users must also call UpdateVideoInput at least once, which selects the camera they will send. Setting streaming to false will not unset their video device selection.

- Sample

public class VideoSelectionMenu : MonoBehaviour { private CavrnusSpaceConnection spaceConn; public void Setup(CavrnusSpaceConnection spaceConn) => this.spaceConn = spaceConn; public void SetStreamingState(CavrnusVideoInputDevice device, bool state) { CavrnusFunctionLibrary.UpdateVideoInput(device); spaceConn.SetLocalUserStreamingState(state); } }

 

Related content

FetchVideoInputs (Unity)
FetchVideoInputs (Unity)
More like this
BindUserVideoFrames (Unity)
BindUserVideoFrames (Unity)
Read with this
Get/BindUserStreaming (Unity)
Get/BindUserStreaming (Unity)
More like this
SpawnObject (Unity)
SpawnObject (Unity)
Read with this
UpdateVideoInput (Unity)
UpdateVideoInput (Unity)
More like this
GetCurrentSpaceUsers (Unity)
GetCurrentSpaceUsers (Unity)
Read with this