Package com.opentok
Class SessionProperties
java.lang.Object
com.opentok.SessionProperties
Defines values for the
properties parameter of the
OpenTok.createSession(SessionProperties) method.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classUse this class to create a SessionProperties object. -
Method Summary
Modifier and TypeMethodDescriptionDefines whether the session will be automatically archived (ArchiveMode.ALWAYS) or not (ArchiveMode.MANUAL).Indicates the archive resolution for all the archives in auto archived session.Indicates the archive resolution for all the archives in auto archived session.The location hint IP address.booleanDefines whether the session will use end-to-end encryption.Defines whether the session will transmit streams using the OpenTok Media Server or attempt to transmit streams directly between clients.toMap()Serializes the properties for making a request.
-
Method Details
-
getLocation
The location hint IP address. SeeSessionProperties.Builder.location(String location). -
mediaMode
Defines whether the session will transmit streams using the OpenTok Media Server or attempt to transmit streams directly between clients. SeeSessionProperties.Builder.mediaMode(MediaMode mediaMode). -
archiveMode
Defines whether the session will be automatically archived (ArchiveMode.ALWAYS) or not (ArchiveMode.MANUAL). SeeSessionProperties.Builder.archiveMode(ArchiveMode archiveMode) -
archiveName
Indicates the archive resolution for all the archives in auto archived session. A session that begins with archive modeArchiveMode.ALWAYSwill use this resolution for all archives of that session.- Returns:
- The archive name, or
nullif not set (the default).
-
archiveResolution
Indicates the archive resolution for all the archives in auto archived session. A session that begins with archive modeArchiveMode.ALWAYSwill use this resolution for all archives of that session.- Returns:
- The archive resolution enum, or
nullif not set (the default).
-
isEndToEndEncrypted
public boolean isEndToEndEncrypted()Defines whether the session will use end-to-end encryption. SeeSessionProperties.Builder.endToEndEncryption().- Returns:
trueif end-to-end encryption is enabled,falseotherwise.
-
toMap
Serializes the properties for making a request.- Returns:
- The session properties as a Map.
-