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 pages