Class VideoRecorder
Definition
- Namespace:
- Tizen.Multimedia
- Assembly:
- Tizen.Multimedia.Recorder.dll
Provides the ability to control video recording.
public class VideoRecorder : Recorder, IDisposable
- Inheritance
- Implements
-
System.
IDisposable
Constructors
View SourceVideoRecorder(Camera, RecorderVideoCodec, RecorderAudioCodec, RecorderFileFormat)
Initializes a new instance of the Video
Declaration
public VideoRecorder(Camera camera, RecorderVideoCodec videoCodec, RecorderAudioCodec audioCodec, RecorderFileFormat fileFormat)
Parameters
Type | Name | Description |
---|---|---|
Camera | camera | The camera object. |
Recorder |
videoCodec | The codec for video encoding. |
Recorder |
audioCodec | The codec for audio encoding. |
Recorder |
fileFormat | The format of result file. |
Remarks
If the state of Camera is Created,
the Preview
The initial state of the Recorder will be Ready
if the state of Camera is Preview or Captured.
Exceptions
Type | Condition |
---|---|
System. |
An internal error occurred. |
System. |
A required feature is not supported. |
System. |
|
System. |
|
System. |
|
See Also
VideoRecorder(Camera, RecorderVideoCodec, RecorderFileFormat)
Initializes a new instance of the Video
Declaration
public VideoRecorder(Camera camera, RecorderVideoCodec videoCodec, RecorderFileFormat fileFormat)
Parameters
Type | Name | Description |
---|---|---|
Camera | camera | The camera object. |
Recorder |
videoCodec | The codec for video encoding. |
Recorder |
fileFormat | The format of result file. |
Remarks
If the state of Camera is Created,
the Preview
The initial state of the Recorder will be Ready
if the state of Camera is Preview or Captured.
Exceptions
Type | Condition |
---|---|
System. |
An internal error occurred. |
System. |
A required feature is not supported. |
System. |
|
System. |
|
System. |
|
See Also
Properties
View SourceVideoBitRate
Gets or sets the bitrate of the video encoder in bits per second.
Declaration
public int VideoBitRate { get; set; }
Property Value
Type | Description |
---|---|
int |
Remarks
Exceptions
Type | Condition |
---|---|
System. |
|
System. |
The recorder is not in the valid state. |
System. |
The recorder already has been disposed of. |
VideoCodec
Gets the audio codec for encoding an audio stream.
Declaration
public RecorderVideoCodec VideoCodec { get; }
Property Value
Type | Description |
---|---|
Recorder |
VideoMotionRate
Gets or sets the video recording motion rate.
Declaration
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.
Exceptions
Type | Condition |
---|---|
System. |
The |
System. |
The recorder is not in the valid state. |
System. |
The recorder already has been disposed of. |
VideoOrientationTag
Gets or sets the orientation in the video metadata tag.
Declaration
public Rotation VideoOrientationTag { get; set; }
Property Value
Exceptions
Type | Condition |
---|---|
System. |
|
System. |
The recorder already has been disposed of. |
VideoResolution
Gets or sets the resolution of the video recording.
Declaration
public Size VideoResolution { get; set; }
Property Value
Type | Description |
---|---|
Size |
Remarks
Exceptions
Type | Condition |
---|---|
System. |
Width or height of |
System. |
|
System. |
The recorder is not in the valid state. |
System. |
The recorder already has been disposed of. |
See Also
Methods
View SourceGetSupportedVideoCodecs()
Gets the video encoders that the current device supports.
Declaration
public static IEnumerable<RecorderVideoCodec> GetSupportedVideoCodecs()
Returns
Type | Description |
---|---|
System. |
Exceptions
Type | Condition |
---|---|
System. |
A required feature is not supported. |
GetSupportedVideoResolutions(CameraDevice)
Gets the video resolutions that the current device supports.
Declaration
public static IEnumerable<Size> GetSupportedVideoResolutions(CameraDevice device)
Parameters
Type | Name | Description |
---|---|---|
Camera |
device | The camera device to retrieve the supported resolutions. |
Returns
Type | Description |
---|---|
System. |
Exceptions
Type | Condition |
---|---|
System. |
A required feature is not supported. |
System. |
|
SetFormatAndCodec(RecorderVideoCodec, RecorderAudioCodec, RecorderFileFormat)
Sets the video codec, audio codec, and the file format for recording.
Declaration
public void SetFormatAndCodec(RecorderVideoCodec videoCodec, RecorderAudioCodec audioCodec, RecorderFileFormat fileFormat)
Parameters
Type | Name | Description |
---|---|---|
Recorder |
videoCodec | The codec for video encoding. |
Recorder |
audioCodec | The codec for audio encoding. |
Recorder |
fileFormat | The format of result file. |
Exceptions
Type | Condition |
---|---|
System. |
|
System. |
|
See Also
SetFormatAndCodec(RecorderVideoCodec, RecorderFileFormat)
Sets the video codec and the file format for recording. Audio will not be recorded.
Declaration
public void SetFormatAndCodec(RecorderVideoCodec videoCodec, RecorderFileFormat fileFormat)
Parameters
Type | Name | Description |
---|---|---|
Recorder |
videoCodec | The codec for video encoding. |
Recorder |
fileFormat | The format of result file. |
Exceptions
Type | Condition |
---|---|
System. |
|
System. |
|