OTSessionCapabilities
Defines the [OTSession capabilities] property. After you have connected to a session and the [OTSessionDelegate sessionDidConnect:] 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 NO (and the client does not have privileges to publish to the session). For more information, see the OpenTok token creation documentation.
Properties
| Name |
Type |
Description |
canPublish |
BOOL |
Whether the client can publish streams to the session (YES) or not (NO). This is set to NO for clients that connect to a session using a token that is assigned a Subscriber role. |
canSubscribe |
BOOL |
Whether the client can subscribe to streams in the session (YES) or not (NO). |
canForceMute |
BOOL |
Whether the client can force mute other streams in the session (YES) or not (NO). See [OTSession forceMuteAll:error:] and [OTSession forceMuteStream:error:]. |
canForceDisconnect |
BOOL |
Whether the client can force disconnect other connections in the session (YES) or not (NO). See [OTSession forceDisconnect:error:] |
Methods
| Name |
Description |
initWithCanPublish:canSubscribe:canForceMute:canForceDisconnect:(publish, subscribe, forceMute, forceDisconnect) → {instancetype} |
|
initWithCanPublish:canSubscribe:canForceMute:canForceDisconnect:(publish, subscribe, forceMute, forceDisconnect) → {instancetype}
Parameters:
| Name |
Type |
Description |
publish |
BOOL |
|
subscribe |
BOOL |
|
forceMute |
BOOL |
|
forceDisconnect |
BOOL |
|
Returns: