getSessionId()
getSessionId()
Returns the session ID, which uniquely identifies the session.
Represents an OpenTok session.
Use the \OpenTok\OpenTok->createSession() method to create an OpenTok session. Use the getSessionId() method of the Session object to get the session ID.
getMediaMode()
Returns MediaMode::RELAYED if the session's streams will be transmitted directly between peers; returns MediaMode::ROUTED if the session's streams will be transmitted using the OpenTok Media Router.
See OpenTok->createSession() and ArchiveMode.
getArchiveMode()
Defines whether the session is automatically archived (ArchiveMode::ALWAYS) or not (ArchiveMode::MANUAL).
See OpenTok->createSession() and ArchiveMode.
generateToken(array $options = array()) : string
Creates a token for connecting to the session. In order to authenticate a user, the client passes a token when connecting to the session.
For testing, you can also generate tokens or by logging in to your Vonage Video API account.
array | $options | This array defines options for the token. This array include the following keys, all of which are optional:
|
The token string.