public static class Session.Capabilities
extends java.lang.Object
Session.getCapabilities()
method.
After you have connected to a session and the
Session.SessionListener.onConnected(Session session)
method has been called,
this property identifies whether the client can publish and subscribe to streams in the
session, based on the role assigned to the token used to connect to the session. For example,
if you connect to a session using a token that is assigned a Subscriber role, the
canPublish
property of this object is set to false
(and the client
does not have privileges to publish to the session). For more information, see the OpenTok
token documentation.Modifier and Type | Field and Description |
---|---|
boolean |
canForceMute
Whether the client can request force mute streams in the session (
true ) or not
(false ). |
boolean |
canPublish
Whether the client can publish streams to the session (
true ) or not
(false ). |
boolean |
canSubscribe
Whether the client can subscribe to streams in the session (
true ) or not
(false ). |
Constructor and Description |
---|
Capabilities() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
toString() |
public boolean canPublish
true
) or not
(false
). This is set to false
for clients that connect to
a session using a token that is assigned a Subscriber role.public boolean canSubscribe
true
) or not
(false
). This is set to true
for all clients (since all tokens
allow clients to subscribe to streams).public boolean canForceMute
true
) or not
(false
).