Class VideoRecorder

Definition

Namespace:
Tizen.Multimedia
Assembly:
Tizen.Multimedia.Recorder.dll
API Level:
4

Provides the ability to control video recording.

C#
Copy
public class VideoRecorder : Recorder
Inheritance
VideoRecorder

Constructors

View Source

VideoRecorder(Camera, RecorderVideoCodec, RecorderAudioCodec, RecorderFileFormat)

Initializes a new instance of the VideoRecorder class with the specified camera, video codec, audio codec, and file format.

Declaration
C#
Copy
public VideoRecorder(Camera camera, RecorderVideoCodec videoCodec, RecorderAudioCodec audioCodec, RecorderFileFormat fileFormat)
Parameters
Type Name Description
Camera camera

The camera object.

RecorderVideoCodec videoCodec

The codec for video encoding.

RecorderAudioCodec audioCodec

The codec for audio encoding.

RecorderFileFormat fileFormat

The format of result file.

Remarks

If the state of Camera is Created, the PreviewPixelFormat will be changed to the recommended format for recording.

The initial state of the Recorder will be Ready if the state of Camera is Preview or Captured.

API Level: 4
Feature: http://tizen.org/feature/media.video_recording
View Source

VideoRecorder(Camera, RecorderVideoCodec, RecorderFileFormat)

Initializes a new instance of the VideoRecorder class with the specified camera, video codec, and file format.

Declaration
C#
Copy
public VideoRecorder(Camera camera, RecorderVideoCodec videoCodec, RecorderFileFormat fileFormat)
Parameters
Type Name Description
Camera camera

The camera object.

RecorderVideoCodec videoCodec

The codec for video encoding.

RecorderFileFormat fileFormat

The format of result file.

Remarks

If the state of Camera is Created, the PreviewPixelFormat will be changed to the recommended format for recording.

The initial state of the Recorder will be Ready if the state of Camera is Preview or Captured.

API Level: 4
Feature: http://tizen.org/feature/media.video_recording

Properties

View Source

VideoBitRate

Gets or sets the bitrate of the video encoder in bits per second.

Declaration
C#
Copy
public int VideoBitRate { get; set; }
Property Value
Type Description
Int32
Remarks

To set, the recorder must be in the Idle or Ready state.

API Level: 4
View Source

VideoCodec

Gets the audio codec for encoding an audio stream.

Declaration
C#
Copy
public RecorderVideoCodec VideoCodec { get; }
Property Value
Type Description
RecorderVideoCodec
API Level: 4
View Source

VideoMotionRate

Gets or sets the video recording motion rate.

Declaration
C#
Copy
public double VideoMotionRate { get; set; }
Property Value
Type Description
Double
Remarks

The attribute is valid only in a video recorder.
If the rate is in range of 0-1, the video is recorded in a slow motion mode.
If the rate is greater than 1, the video is recorded in a fast motion mode.

To set, the recorder must be in the Idle or the Ready state.

API Level: 4
View Source

VideoOrientationTag

Gets or sets the orientation in the video metadata tag.

Declaration
C#
Copy
public Rotation VideoOrientationTag { get; set; }
Property Value
Type Description
Rotation

A Rotation that specifies the type of orientation.

API Level: 4
View Source

VideoResolution

Gets or sets the resolution of the video recording.

Declaration
C#
Copy
public Size VideoResolution { get; set; }
Property Value
Type Description
Size
Remarks

To set, the recorder must be in the Idle or the Ready state.

API Level: 4

Methods

View Source

GetSupportedVideoCodecs()

Gets the video encoders that the current device supports.

Declaration
C#
Copy
public static IEnumerable<RecorderVideoCodec> GetSupportedVideoCodecs()
Returns
Type Description
IEnumerable<RecorderVideoCodec>
API Level: 4
Feature: http://tizen.org/feature/media.video_recording
View Source

GetSupportedVideoResolutions(CameraDevice)

Gets the video resolutions that the current device supports.

Declaration
C#
Copy
public static IEnumerable<Size> GetSupportedVideoResolutions(CameraDevice device)
Parameters
Type Name Description
CameraDevice device

The camera device to retrieve the supported resolutions.

Returns
Type Description
IEnumerable<Size>
API Level: 4
Feature: http://tizen.org/feature/media.video_recording
View Source

SetFormatAndCodec(RecorderVideoCodec, RecorderAudioCodec, RecorderFileFormat)

Sets the video codec, audio codec, and the file format for recording.

Declaration
C#
Copy
public void SetFormatAndCodec(RecorderVideoCodec videoCodec, RecorderAudioCodec audioCodec, RecorderFileFormat fileFormat)
Parameters
Type Name Description
RecorderVideoCodec videoCodec

The codec for video encoding.

RecorderAudioCodec audioCodec

The codec for audio encoding.

RecorderFileFormat fileFormat

The format of result file.

API Level: 4
View Source

SetFormatAndCodec(RecorderVideoCodec, RecorderFileFormat)

Sets the video codec and the file format for recording. Audio will not be recorded.

Declaration
C#
Copy
public void SetFormatAndCodec(RecorderVideoCodec videoCodec, RecorderFileFormat fileFormat)
Parameters
Type Name Description
RecorderVideoCodec videoCodec

The codec for video encoding.

RecorderFileFormat fileFormat

The format of result file.

API Level: 4

Extension Methods