Package com.opentok
Class SessionProperties
java.lang.Object
com.opentok.SessionProperties
Defines values for the
properties
parameter of the
OpenTok.createSession(SessionProperties)
method.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Use 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.boolean
Defines 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.ALWAYS
will use this resolution for all archives of that session.- Returns:
- The archive name, or
null
if not set (the default).
-
archiveResolution
Indicates the archive resolution for all the archives in auto archived session. A session that begins with archive modeArchiveMode.ALWAYS
will use this resolution for all archives of that session.- Returns:
- The archive resolution enum, or
null
if not set (the default).
-
isEndToEndEncrypted
public boolean isEndToEndEncrypted()Defines whether the session will use end-to-end encryption. SeeSessionProperties.Builder.endToEndEncryption()
.- Returns:
true
if end-to-end encryption is enabled,false
otherwise.
-
toMap
Serializes the properties for making a request.- Returns:
- The session properties as a Map.
-