Package org.kurento.client
Class RecorderEndpoint.Builder
- Enclosing interface:
RecorderEndpoint
-
Field Summary
Fields inherited from class org.kurento.client.AbstractBuilder
genericProperties, props
-
Constructor Summary
ConstructorsConstructorDescriptionBuilder
(MediaPipeline mediaPipeline, String uri) Creates a Builder for RecorderEndpoint -
Method Summary
Modifier and TypeMethodDescriptionForces the recorder endpoint to finish processing data when an End Of Stream (EOS) is detected in the streamwithMediaProfile
(MediaProfileSpecType mediaProfile) Sets a value for mediaProfile in Builder for RecorderEndpoint.withProperties
(Properties properties) Methods inherited from class org.kurento.client.AbstractBuilder
build, build, buildAsync
-
Constructor Details
-
Builder
Creates a Builder for RecorderEndpoint
-
-
Method Details
-
withProperties
- Overrides:
withProperties
in classAbstractBuilder<RecorderEndpoint>
-
with
- Overrides:
with
in classAbstractBuilder<RecorderEndpoint>
-
withMediaProfile
Sets a value for mediaProfile in Builder for RecorderEndpoint.- Parameters:
mediaProfile
- Selects the media format used for recording.The media profile allows you to specify which codecs and media container will be used for the recordings. This is currently the only way available to tell Kurento about which codecs should be used.
Watch out for these important remarks:
- If the format of incoming media differs from the recording profile, media will need to be transcoded. Transcoding always incurs in noticeable CPU load, so it is always good trying to avoid it. For instance, if a VP8-encoded video (from WebRTC) is recorded with an MP4 recording profile (which means H.264 encoding), the video needs to be transcoded from VP8 to H.264. On the other hand, recording with the WEBM profile would allow to store the video as-is with its VP8 encoding.
-
If you intend to record audio-only or video-only media, select the
appropriate
_AUDIO_ONLY
or_VIDEO_ONLY
profile. For example, to record a WebRTC screen capture (as obtained from a web browser's call toMediaDevices.getDisplayMedia()
), chooseWEBM_VIDEO_ONLY
instead of justWEBM
.
-
stopOnEndOfStream
Forces the recorder endpoint to finish processing data when an End Of Stream (EOS) is detected in the stream
-