Definition
- Namespace:
- Tizen.Multimedia
- Assembly:
- Tizen.Multimedia.Recorder.dll
- API Level:
- 3
Recorder is a base class for audio and video recorders that
provides the ability to control the recording of a multimedia content.
Simple audio and audio/video are supported.
public abstract class Recorder : IDisposable
- Inheritance
-
- Derived
-
Properties
View Source
Gets or sets the bitrate of an audio encoder in bits per second.
Declaration
public int AudioBitRate { get; set; }
Property Value
API Level: 4
View Source
Gets or sets the number of the audio channel.
Declaration
public int AudioChannels { get; set; }
Property Value
Type |
Description |
Int32 |
For mono recording, set the channel to 1.
For stereo recording, set the channel to 2.
|
API Level: 4
View Source
Gets the audio codec for encoding an audio stream.
Declaration
public RecorderAudioCodec AudioCodec { get; }
Property Value
API Level: 4
View Source
Gets or sets the audio device for recording.
Declaration
public RecorderAudioDevice AudioDevice { get; set; }
Property Value
API Level: 4
View Source
Gets or sets the sampling rate of an audio stream in hertz.
Declaration
public int AudioSampleRate { get; set; }
Property Value
API Level: 4
View Source
Gets the file format of the recording result.
Declaration
public RecorderFileFormat FileFormat { get; }
Property Value
API Level: 4
Declaration
public bool Muted { get; set; }
Property Value
API Level: 4
View Source
Gets or sets the maximum size of a recording file.
Declaration
public int SizeLimit { get; set; }
Property Value
Type |
Description |
Int32 |
The maximum size of a recording file in kilobytes, or 0 for unlimited size.
|
API Level: 4
Declaration
public RecorderState State { get; }
Property Value
API Level: 3
Declaration
public int TimeLimit { get; set; }
Property Value
Type |
Description |
Int32 |
The time of recording in seconds, or 0 for unlimited time.
|
API Level: 4
Methods
Declaration
public void ApplyAudioStreamPolicy(AudioStreamPolicy policy)
Parameters
API Level: 4
View Source
Cancels the recording.
The recording data is discarded and not written in the recording file.
Declaration
API Level: 3
Declaration
API Level: 3
View Source
Releases the unmanaged resources used by the Recorder.
Declaration
API Level: 3
View Source
Releases the resources used by the Recorder.
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type |
Name |
Description |
Boolean |
disposing |
true to release both managed and unmanaged resources; false to release only unmanaged resources.
|
API Level: 3
Declaration
public static RecorderDeviceState GetDeviceState(RecorderType type)
Parameters
Returns
API Level: 4
View Source
Returns the peak audio input level in dB since the last call to this method.
Declaration
public double GetPeakAudioLevel()
Returns
API Level: 4
View Source
Gets the audio encoders that the current device supports.
Declaration
public static IEnumerable<RecorderAudioCodec> GetSupportedAudioCodecs()
Returns
API Level: 4
Feature: http://tizen.org/feature/media.audio_recording
View Source
Gets the file formats that the current device supports.
Declaration
public static IEnumerable<RecorderFileFormat> GetSupportedFileFormats()
Returns
API Level: 4
Feature: http://tizen.org/feature/media.audio_recording
Declaration
API Level: 3
Declaration
API Level: 3
Declaration
API Level: 4
Declaration
public void Start(string savePath)
Parameters
Type |
Name |
Description |
String |
savePath |
The file path for recording result.
|
API Level: 4
Privilege Level: public
Privilege: http://tizen.org/privilege/recorder
Declaration
API Level: 3
Events
View Source
Occurs when the audio stream data is being delivered.
Declaration
public event EventHandler<AudioStreamStoringEventArgs> AudioStreamStoring
Event Type
API Level: 4
View Source
Occurs when a recorder device state changes.
Declaration
public static event EventHandler<RecorderDeviceStateChangedEventArgs> DeviceStateChanged
Event Type
API Level: 4
View Source
Occurs when an error occurs during the recorder operation.
Declaration
public event EventHandler<RecordingErrorOccurredEventArgs> ErrorOccurred
Event Type
API Level: 3
View Source
Occurs after interrupt handling is completed.
Declaration
public event EventHandler<RecorderInterruptedEventArgs> Interrupted
Event Type
API Level: 3
View Source
Occurs before interrupt handling is started.
Declaration
public event EventHandler<RecorderInterruptingEventArgs> Interrupting
Event Type
API Level: 4
View Source
Occurs when the muxed stream data is being delivered.
Declaration
public event EventHandler<MuxedStreamDeliveredEventArgs> MuxedStreamDelivered
Event Type
API Level: 3
Declaration
public event EventHandler<RecordingLimitReachedEventArgs> RecordingLimitReached
Event Type
API Level: 3
View Source
Occurs when the recording information changes.
Declaration
public event EventHandler<RecordingStatusChangedEventArgs> RecordingStatusChanged
Event Type
API Level: 4
View Source
This event occurs when the recorder state is changed.
Declaration
public event EventHandler<RecorderStateChangedEventArgs> StateChanged
Event Type
API Level: 3
Extension Methods