Role
Defines values for the role parameter of the \OpenTok\OpenTok->generateToken() method.
Table of Contents
MODERATOR = 'moderator' : In addition to the privileges granted to a publisher, a moderator can perform moderation functions, such as forcing clients to disconnect, to stop publishing streams, or to mute audio in published streams.
PUBLISHER = 'publisher' : A publisher can publish streams, subscribe to streams, and signal. (This is the default value if you do not set a role.)
PUBLISHER_ONLY = 'publisheronly'
SUBSCRIBER = 'subscriber' : A subscriber can only subscribe to streams.
Constants
MODERATOR
In addition to the privileges granted to a publisher, a moderator can perform moderation functions, such as forcing clients to disconnect, to stop publishing streams, or to mute audio in published streams.
public mixed MODERATOR = 'moderator'
See the Moderation developer guide.
PUBLISHER
A publisher can publish streams, subscribe to streams, and signal. (This is the default value if you do not set a role.)
public mixed PUBLISHER = 'publisher'
PUBLISHER_ONLY
public string PUBLISHER_ONLY = 'publisheronly'
SUBSCRIBER
A subscriber can only subscribe to streams.
public mixed SUBSCRIBER = 'subscriber'