Package io.openvidu.java.client
Class RecordingProperties
java.lang.Object
io.openvidu.java.client.RecordingProperties
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionIfrecordingLayout()
is set toRecordingLayout.CUSTOM
, this property defines the relative path to the specific custom layout you want to use.
See Custom recording layouts to learn moreDefines the frame rate of the recorded video.
Will only have effect forRecording.OutputMode.COMPOSED
orRecording.OutputMode.COMPOSED_QUICK_START
recordings withhasVideo()
to true.hasAudio()
Defines whether to record audio or not.hasVideo()
Defines whether to record video or not.Defines whether to ignore failed streams or not when starting the recording.PRO The Media Node where to host the recording.name()
Defines the name you want to give to the video fileDefines the mode of recording:Recording.OutputMode.COMPOSED
orRecording.OutputMode.COMPOSED_QUICK_START
for a single archive in a grid layout orRecording.OutputMode.INDIVIDUAL
for one archive for each stream.
Default toOutputMode.COMPOSED
Defines the layout to be used in the recording.
Will only have effect forRecording.OutputMode.COMPOSED
orRecording.OutputMode.COMPOSED_QUICK_START
recordings withhasVideo()
to true.Defines the resolution of the recorded video.
Will only have effect forRecording.OutputMode.COMPOSED
orRecording.OutputMode.COMPOSED_QUICK_START
recordings withhasVideo()
to true.shmSize()
The amount of shared memory reserved for the recording process in bytes.
-
Method Details
-
name
Defines the name you want to give to the video file -
hasAudio
Defines whether to record audio or not. Cannot be set to false at the same time ashasVideo()
.
Default to true -
hasVideo
Defines whether to record video or not. Cannot be set to false at the same time ashasAudio()
.
Default to true -
outputMode
Defines the mode of recording:Recording.OutputMode.COMPOSED
orRecording.OutputMode.COMPOSED_QUICK_START
for a single archive in a grid layout orRecording.OutputMode.INDIVIDUAL
for one archive for each stream.
Default toOutputMode.COMPOSED
-
recordingLayout
Defines the layout to be used in the recording.
Will only have effect forRecording.OutputMode.COMPOSED
orRecording.OutputMode.COMPOSED_QUICK_START
recordings withhasVideo()
to true. Property ignored for INDIVIDUAL recordings and audio-only recordings
Default toRecordingLayout.BEST_FIT
-
resolution
Defines the resolution of the recorded video.
Will only have effect forRecording.OutputMode.COMPOSED
orRecording.OutputMode.COMPOSED_QUICK_START
recordings withhasVideo()
to true. Property ignored for INDIVIDUAL recordings and audio-only recordings. ForRecording.OutputMode.INDIVIDUAL
all individual video files will have the native resolution of the published stream.
Default to "1280x720" -
frameRate
Defines the frame rate of the recorded video.
Will only have effect forRecording.OutputMode.COMPOSED
orRecording.OutputMode.COMPOSED_QUICK_START
recordings withhasVideo()
to true. Property ignored for INDIVIDUAL recordings and audio-only recordings. ForRecording.OutputMode.INDIVIDUAL
all individual video files will have the native frame rate of the published stream.
Default to 25 -
shmSize
The amount of shared memory reserved for the recording process in bytes. Minimum 134217728 (128MB).
Will only have effect forRecording.OutputMode.COMPOSED
orRecording.OutputMode.COMPOSED_QUICK_START
recordings withhasVideo()
to true. Property ignored for INDIVIDUAL recordings and audio-only recordings
Default to 536870912 (512 MB) -
customLayout
IfrecordingLayout()
is set toRecordingLayout.CUSTOM
, this property defines the relative path to the specific custom layout you want to use.
See Custom recording layouts to learn more -
ignoreFailedStreams
Defines whether to ignore failed streams or not when starting the recording. This property only applies toRecording.OutputMode.INDIVIDUAL
recordings. For this type of recordings, when callingOpenVidu.startRecording(String, RecordingProperties)
by default all the streams available at the moment the recording process starts must be healthy and properly sending media. If some stream that should be sending media is broken, then the recording process fails after a 10s timeout. In this way your application is notified that some stream is not being recorded, so it can retry the process again. But you can disable this rollback behavior and simply ignore any failed stream, which will be susceptible to be recorded in the future if media starts flowing as expected at any point. The downside of this behavior is that you will have no guarantee that all streams present at the beginning of a recording are actually being recorded.
Default to false -
mediaNode
PRO The Media Node where to host the recording. The default option if this property is not defined is the same Media Node hosting the Session to record. This property only applies to COMPOSED or COMPOSED_QUICK_START recordings withhasVideo()
to true and is ignored for INDIVIDUAL recordings and audio-only recordings
-