MediaSourceRecorderConfig interface

Options for creating a video recorder for a media source with O3hMediaSource.createVideoRecorder()

Signature:

export interface MediaSourceRecorderConfig 

Properties

PropertyModifiersTypeDescription
autoMirrorFrontCamera?readonlyboolean(Optional) If this is true applies a horizontal mirroring to the front camera when recording to correct the display mirroring. Otherwise records the camera as it is displayed. Does not affect other media sources. This is true by default.
recordMicrophone?readonlyboolean(Optional) True to record audio from the microphone in the video, if the user settings allows it. This is true by default.
videoSize?readonlyVector2(Optional) The resolution of the recorded video, if not specified the resolution is determined from the source. If the aspect ratio is different from the source aspect ratio, the video will be cropped to fit the given dimensions.

MediaSourceRecorderConfig.autoMirrorFrontCamera property

If this is true applies a horizontal mirroring to the front camera when recording to correct the display mirroring. Otherwise records the camera as it is displayed. Does not affect other media sources. This is true by default.

Signature:

readonly autoMirrorFrontCamera?: boolean;

MediaSourceRecorderConfig.recordMicrophone property

True to record audio from the microphone in the video, if the user settings allows it. This is true by default.

Signature:

readonly recordMicrophone?: boolean;

MediaSourceRecorderConfig.videoSize property

The resolution of the recorded video, if not specified the resolution is determined from the source. If the aspect ratio is different from the source aspect ratio, the video will be cropped to fit the given dimensions.

Signature:

readonly videoSize?: Vector2;