\OpenTokRole

Defines values for the role parameter of the OpenTok.OpenTok.generateToken() method.

Summary

Methods
Properties
Constants
No public methods found
No public properties found
SUBSCRIBER
PUBLISHER
MODERATOR
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Constants

SUBSCRIBER

SUBSCRIBER

A subscriber can only subscribe to 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.)

MODERATOR

MODERATOR

In addition to the privileges granted to a publisher, in clients using the OpenTok.js 2.2 library, a moderator can call the <code>forceUnpublish()</code> and <code>forceDisconnect()</code> method of the Session object.