Class StreamRecorder
Definition
- Namespace:
- Tizen.Multimedia
- Assembly:
- Tizen.Multimedia.StreamRecorder.dll
- API Level:
- 3
Provides the ability to record user buffer from application.
C#Copypublic class StreamRecorder : IDisposable
- Inheritance
-
StreamRecorder
Constructors
Declaration
C#Copypublic StreamRecorder()
API Level: 3
Feature: http://tizen.org/feature/multimedia.stream_recorder
Properties
Declaration
C#Copypublic RecorderState State { get; }
Property Value
Type | Description |
---|---|
RecorderState |
API Level: 3
Methods
Declaration
C#Copypublic void Cancel()
Remarks
API Level: 3
Declaration
C#Copypublic void Commit()
Remarks
The recorder state must be Recording state by Start() or
Paused state by Pause().
The recorder state will be Ready after commit.
http://tizen.org/privilege/mediastorage is needed if the save path are relevant to media storage. http://tizen.org/privilege/externalstorage is needed if the save path are relevant to external storage.
API Level: 3
Privilege Level: public
Privilege: http://tizen.org/privilege/mediastoragehttp://tizen.org/privilege/externalstorage
Declaration
C#Copypublic void Dispose()
API Level: 3
Declaration
C#Copyprotected 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
C#Copypublic IEnumerable<RecorderAudioCodec> GetSupportedAudioCodecs()
Returns
Type | Description |
---|---|
IEnumerable<RecorderAudioCodec> | An IEnumerable of RecorderAudioCodec representing the supported audio codecs. |
API Level: 4
Declaration
C#Copypublic IEnumerable<RecorderFileFormat> GetSupportedFileFormats()
Returns
Type | Description |
---|---|
IEnumerable<RecorderFileFormat> | An IEnumerable of RecorderFileFormat representing the supported file formats. |
API Level: 4
Declaration
C#Copypublic IEnumerable<RecorderVideoCodec> GetSupportedVideoCodecs()
Returns
Type | Description |
---|---|
IEnumerable<RecorderVideoCodec> | An IEnumerable of RecorderVideoCodec representing the supported video codecs. |
API Level: 4
GetSupportedVideoResolutions()
Gets the video resolutions that the current device supports.
Declaration
C#Copypublic IEnumerable<Size> GetSupportedVideoResolutions()
Returns
Type | Description |
---|---|
IEnumerable<Size> | An IEnumerable of |
API Level: 4
Declaration
C#Copypublic void Pause()
Remarks
Recording can be resumed with Start().
The recorder state must be Recording state by Start().
It has no effect if the recorder is already in the Paused state.
API Level: 3
Declaration
C#Copypublic void Prepare(StreamRecorderOptions options)
Parameters
Type | Name | Description |
---|---|---|
StreamRecorderOptions | options | The options for recording. |
Remarks
The recorder must be Idle.
See Also
API Level: 4
Declaration
C#Copypublic void PushBuffer(MediaPacket packet)
Parameters
Type | Name | Description |
---|---|---|
MediaPacket | packet | An audio or video packet to record. |
Remarks
API Level: 3
Declaration
C#Copypublic void Start()
Remarks
The recorder state must be Ready state by
Prepare(StreamRecorderOptions) or
Paused state by Pause().
It has no effect if the recorder is already in the Recording state.
API Level: 3
Declaration
C#Copypublic void Unprepare()
Remarks
The recorder state must be Ready state by
Prepare(StreamRecorderOptions), Cancel() and Commit().
The recorder state will be Idle.
It has no effect if the recorder is already in the Idle state.
See Also
API Level: 3
Events
Declaration
C#Copypublic event EventHandler<StreamRecorderBufferConsumedEventArgs> BufferConsumed
Event Type
Type | Description |
---|---|
EventHandler<StreamRecorderBufferConsumedEventArgs> |
API Level: 3
Declaration
C#Copypublic event EventHandler<StreamRecorderErrorOccurredEventArgs> ErrorOccurred
Event Type
Type | Description |
---|---|
EventHandler<StreamRecorderErrorOccurredEventArgs> |
API Level: 4
Declaration
C#Copypublic event EventHandler<RecordingLimitReachedEventArgs> RecordingLimitReached
Event Type
Type | Description |
---|---|
EventHandler<RecordingLimitReachedEventArgs> |
API Level: 3
Declaration
C#Copypublic event EventHandler<RecordingStatusChangedEventArgs> RecordingStatusChanged
Event Type
Type | Description |
---|---|
EventHandler<RecordingStatusChangedEventArgs> |
API Level: 3
Declaration
C#Copypublic event EventHandler<StreamRecorderStateChangedEventArgs> StateChanged
Event Type
Type | Description |
---|---|
EventHandler<StreamRecorderStateChangedEventArgs> |