Get/BindUserStreaming (Unity)
- Declaration
public static bool GetUserStreaming(this CavrnusUser user)
public static IDisposable BindUserStreaming(this CavrnusUser user, Action<bool> onStreamingChanged)
- Description
Gets or Binds a bool to tell if the given user is currently sharing their camera stream.
Note: Under-the-hood this is actually just calling: user.SpaceConnection.GetBoolPropertyValue(user.ContainerId, "streaming");
Since "streaming"
is a well-known value assigned by the server, we wrote this function as a helpful convenience.
NOTE: Since this value is representing data coming from outside the Properties system it cannot be assigned to, only read. To share your camera stream, try calling SetLocalUserStreamingState, and it will update this value for your CavrnusUser.
- Sample
Looking for labels? They can now be found in the details panel on the floating action bar.
Related content
SetLocalUserStreamingState (Unity)
SetLocalUserStreamingState (Unity)
More like this
BindSpaceUsers (Unity)
BindSpaceUsers (Unity)
More like this
Binding and Displaying Properties (Unity)
Binding and Displaying Properties (Unity)
More like this
BindUserVideoFrames (Unreal Engine)
BindUserVideoFrames (Unreal Engine)
More like this
FetchVideoInputs (Unity)
FetchVideoInputs (Unity)
More like this
CavrnusUser (Unity)
CavrnusUser (Unity)
More like this