public static class SessionProperties.Builder
extends java.lang.Object
SessionProperties| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
SessionProperties.Builder |
archiveMode(ArchiveMode archiveMode)
Call this method to determine whether the session will be automatically archived (
ArchiveMode.ALWAYS)
or not (ArchiveMode.MANUAL). |
SessionProperties.Builder |
archiveName(java.lang.String archiveName)
Indicates the archive name for all the archives in auto archived session.
|
SessionProperties.Builder |
archiveResolution(Resolution archiveResolution)
Indicates the archive resolution for all the archives in auto archived session.
|
SessionProperties |
build()
Builds the SessionProperties object.
|
SessionProperties.Builder |
endToEndEncryption()
Enables end-to-end encryption for a routed session.
|
SessionProperties.Builder |
location(java.lang.String location)
Call this method to set an IP address that the OpenTok servers will use to
situate the session in its global network.
|
SessionProperties.Builder |
mediaMode(MediaMode mediaMode)
Call this method to determine whether the session will transmit streams using the
OpenTok Media Router (
MediaMode.ROUTED) or not
(MediaMode.RELAYED). |
public SessionProperties.Builder location(java.lang.String location) throws InvalidArgumentException
location - The IP address to serve as the location hint.InvalidArgumentExceptionpublic SessionProperties.Builder mediaMode(MediaMode mediaMode)
MediaMode.ROUTED) or not
(MediaMode.RELAYED). By default, the mediaMode property
is set to MediaMode.RELAYED.
With the mediaMode property set to MediaMode.RELAYED, the session
will attempt to transmit streams directly between clients. If clients cannot connect due to
firewall restrictions, the session uses the OpenTok TURN server to relay audio-video
streams.
The OpenTok Media Router provides the following benefits:
mediaMode property is set to MediaMode.RELAYED,
each client must send a separate audio-video stream to each client subscribing to
it.)mediaMode - Set to a value defined in the MediaMode enum.public SessionProperties.Builder archiveMode(ArchiveMode archiveMode)
ArchiveMode.ALWAYS)
or not (ArchiveMode.MANUAL).
Using an always archived session also requires the routed media mode (MediaMode.ROUTED).
archiveMode - The Archive mode.public SessionProperties.Builder archiveResolution(Resolution archiveResolution)
ArchiveMode.ALWAYS will use this resolution for all archives of that session.archiveResolution - The auto archive resolution as an enum.public SessionProperties.Builder archiveName(java.lang.String archiveName)
ArchiveMode.ALWAYS will use this archive name for all archives of that session.archiveName - The archive name, maximum 80 characters in length.public SessionProperties.Builder endToEndEncryption()
mediaMode(MediaMode) to MediaMode.ROUTED when
calling this method.true.public SessionProperties build()