public static class ArchiveProperties.Builder
extends java.lang.Object
ArchiveProperties| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
ArchiveProperties |
build()
Builds the ArchiveProperties object.
|
ArchiveProperties.Builder |
hasAudio(boolean hasAudio)
Call this method to include an audio track (
true, the default)
or not false). |
ArchiveProperties.Builder |
hasVideo(boolean hasVideo)
Call this method to include an video track (
true, the default)
or not false). |
ArchiveProperties.Builder |
layout(ArchiveLayout layout)
Sets the layout for a composed archive.
|
ArchiveProperties.Builder |
multiArchiveTag(java.lang.String multiArchiveTag)
Set this to support recording multiple archives for the same session simultaneously.
|
ArchiveProperties.Builder |
name(java.lang.String name)
Sets a name for the archive.
|
ArchiveProperties.Builder |
outputMode(Archive.OutputMode outputMode)
Sets the output mode for this archive.
|
ArchiveProperties.Builder |
resolution(java.lang.String resolution)
Sets the resolution of the archive.
|
ArchiveProperties.Builder |
streamMode(Archive.StreamMode streamMode)
Sets the stream mode for this archive.
|
public ArchiveProperties.Builder name(java.lang.String name)
name - The name of the archive. You can use this name to identify the archive. It is a property
of the Archive object, and it is a property of archive-related events in the OpenTok JavaScript SDK.public ArchiveProperties.Builder resolution(java.lang.String resolution)
resolution - The resolution of the archive, either "640x480" (SD, the default) or
"1280x720" (HD). This property only applies to composed archives. If you set this
and set the outputMode property to "individual", the call in the API method results in
an error.public ArchiveProperties.Builder hasAudio(boolean hasAudio)
true, the default)
or not false).hasAudio - Whether the archive will include an audio track.public ArchiveProperties.Builder hasVideo(boolean hasVideo)
true, the default)
or not false).hasVideo - Whether the archive will include a video track.public ArchiveProperties.Builder outputMode(Archive.OutputMode outputMode)
outputMode - Set to a value defined in the Archive.OutputMode enum.public ArchiveProperties.Builder streamMode(Archive.StreamMode streamMode)
When streams are selected automatically (StreamMode.AUTO, the default), all
streams in the session can be included in the archive. When streams are selected manually
(StreamMode.MANUAL), you specify streams to be included based on calls
to the OpenTok.addArchiveStream(String, String, boolean, boolean) and
OpenTok.removeArchiveStream(String, String) methods. With
StreamMode.MANUAL, you can specify whether a stream's audio, video, or both
are included in the archive. Un both automatic and manual modes, the archive composer
includes streams based on
stream
prioritization rules.
streamMode - Set to a value defined in the Archive.StreamMode enum.public ArchiveProperties.Builder layout(ArchiveLayout layout)
layout - An object of type ArchiveLayout .public ArchiveProperties.Builder multiArchiveTag(java.lang.String multiArchiveTag)
multiArchiveTag - A unique archive tag.public ArchiveProperties build()