-
- All Implemented Interfaces:
-
java.io.Serializable
public final class CallGrantsUpdated extends Message<CallGrantsUpdated, Nothing>
CallGrants is sent to users when there is a change in the call permissions to publish audio, video or share the screen for a user or a role. This is idempotent and can be sent at any time. Only the current_grants in the latest message should be considered. In other words, this is not dependent on any other message (including previous call_grants_updated message)
When this message is received, the client (say, React component) should mute the tracks which are not allowed anymore. For example, if the message has grants {audio:true, video:false} while the user is publishing video, then the client component should mute the video track and gray out the video button. This way, the user will not be able to publish video until the permissions are granted again. Also, muting the track on the client side will prevent the SFU from receiving the video track and will save bandwidth.
In simple words, this is exactly the same as muting a track on the client. Here, instead of the user instructing the client, SFU would be doing it.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classCallGrantsUpdated.Companion
-
Field Summary
Fields Modifier and Type Field Description private final CallGrantscurrent_grantsprivate final Stringmessageprivate final ProtoAdapter<CallGrantsUpdated>adapterprivate final ByteStringunknownFields
-
Constructor Summary
Constructors Constructor Description CallGrantsUpdated(CallGrants current_grants, String message, ByteString unknownFields)
-
Method Summary
Modifier and Type Method Description final CallGrantsgetCurrent_grants()final StringgetMessage()final ProtoAdapter<CallGrantsUpdated>adapter()final ByteStringunknownFields()VoidnewBuilder()Booleanequals(Object other)IntegerhashCode()StringtoString()final CallGrantsUpdatedcopy(CallGrants current_grants, String message, ByteString unknownFields)-
-
Constructor Detail
-
CallGrantsUpdated
CallGrantsUpdated(CallGrants current_grants, String message, ByteString unknownFields)
-
-
Method Detail
-
getCurrent_grants
final CallGrants getCurrent_grants()
-
getMessage
final String getMessage()
-
adapter
final ProtoAdapter<CallGrantsUpdated> adapter()
-
unknownFields
final ByteString unknownFields()
-
newBuilder
@Deprecated(message = Shouldn't be used in Kotlin, level = DeprecationLevel.HIDDEN) Void newBuilder()
-
copy
final CallGrantsUpdated copy(CallGrants current_grants, String message, ByteString unknownFields)
-
-
-
-