public static class RecordingProperties.Builder extends Object
RecordingProperties
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
RecordingProperties |
build()
Builder for
RecordingProperties |
RecordingProperties.Builder |
customLayout(String path)
If setting
recordingLayout(RecordingLayout)
to RecordingLayout.CUSTOM you can call this
method to set the relative path to the specific custom layout you want to
use.Will only have effect if Builder.outputMode() has been called with value
OutputMode.COMPOSED or
OutputMode.COMPOSED_QUICK_START .See Custom recording layouts to learn more |
RecordingProperties.Builder |
hasAudio(boolean hasAudio)
Call this method to specify whether to record audio or not.
|
RecordingProperties.Builder |
hasVideo(boolean hasVideo)
Call this method to specify whether to record video or not.
|
RecordingProperties.Builder |
name(String name)
Call this method to set the name of the video file.
|
RecordingProperties.Builder |
outputMode(Recording.OutputMode outputMode)
Call this method to set the mode of recording: COMPOSED for a single archive
in a grid layout or INDIVIDUAL for one archive for each stream
|
RecordingProperties.Builder |
recordingLayout(RecordingLayout layout)
Call this method to set the layout to be used in the recording.
|
RecordingProperties.Builder |
resolution(String resolution)
Call this method to specify the recording resolution.
|
RecordingProperties.Builder |
shmSize(long shmSize)
If COMPOSED recording, call this method to specify the amount of shared
memory reserved for the recording process in bytes.
|
public RecordingProperties build()
RecordingProperties
public RecordingProperties.Builder name(String name)
recordingStarted
,
recordingStopped
)public RecordingProperties.Builder outputMode(Recording.OutputMode outputMode)
public RecordingProperties.Builder recordingLayout(RecordingLayout layout)
outputMode(Recording.OutputMode)
has been called with value
Recording.OutputMode.COMPOSED
or
Recording.OutputMode.COMPOSED_QUICK_START
public RecordingProperties.Builder customLayout(String path)
recordingLayout(RecordingLayout)
to RecordingLayout.CUSTOM
you can call this
method to set the relative path to the specific custom layout you want to
use.Builder.outputMode()
has been called with value
OutputMode.COMPOSED
or
OutputMode.COMPOSED_QUICK_START
.public RecordingProperties.Builder resolution(String resolution)
Builder.outputMode()
has been called with value
OutputMode.COMPOSED
or
OutputMode.COMPOSED_QUICK_START
. For
OutputMode.INDIVIDUAL
all individual video files will have the native
resolution of the published streampublic RecordingProperties.Builder hasAudio(boolean hasAudio)
hasVideo(boolean)
public RecordingProperties.Builder hasVideo(boolean hasVideo)
hasAudio(boolean)
public RecordingProperties.Builder shmSize(long shmSize)
Copyright © 2020 OpenVidu. All rights reserved.