Class StreamRecorder
Definition
- Namespace:
- Tizen.Multimedia
- Assembly:
- Tizen.Multimedia.StreamRecorder.dll
Provides the ability to record user buffer from application.
C#Copy[Obsolete("Deprecated in API10; Will be removed in API12")] public class StreamRecorder : IDisposable
- Inheritance
-
objectStreamRecorder
- Implements
-
System.IDisposable
Constructors
Declaration
C#Copy[Obsolete("Deprecated in API10; Will be removed in API12")] public StreamRecorder()
Exceptions
| Type | Condition |
|---|---|
| System.NotSupportedException | The feature is not supported. |
See Also
Properties
Declaration
C#Copy[Obsolete("Deprecated in API10; Will be removed in API12")] public RecorderState State { get; }
Property Value
| Type | Description |
|---|---|
| RecorderState |
Exceptions
| Type | Condition |
|---|---|
| System.ObjectDisposedException | The StreamRecorder has already been disposed. |
See Also
Methods
Declaration
C#Copy[Obsolete("Deprecated in API10; Will be removed in API12")] public void Cancel()
Remarks
Exceptions
| Type | Condition |
|---|---|
| System.InvalidOperationException | The recorder is not in the valid state. |
| System.ObjectDisposedException | The StreamRecorder has already been disposed. |
Declaration
C#Copy[Obsolete("Deprecated in API10; Will be removed in API12")] public 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.
Exceptions
| Type | Condition |
|---|---|
| System.InvalidOperationException | The recorder is not in the valid state. |
| System.UnauthorizedAccessException | The access to the resources can not be granted. |
| System.ObjectDisposedException | The StreamRecorder has already been disposed. |
Declaration
C#Copy[Obsolete("Deprecated in API10; Will be removed in API12")] public void Dispose()
See Also
Declaration
C#Copyprotected virtual void Dispose(bool disposing)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | disposing | true to release both managed and unmanaged resources; false to release only unmanaged resources. |
See Also
Declaration
C#Copy[Obsolete("Deprecated in API10; Will be removed in API12")] public IEnumerable<RecorderAudioCodec> GetSupportedAudioCodecs()
Returns
| Type | Description |
|---|---|
| System.Collections.Generic.IEnumerable<T><RecorderAudioCodec> | An IEnumerable of RecorderAudioCodec representing the supported audio codecs. |
See Also
Declaration
C#Copy[Obsolete("Deprecated in API10; Will be removed in API12")] public IEnumerable<RecorderFileFormat> GetSupportedFileFormats()
Returns
| Type | Description |
|---|---|
| System.Collections.Generic.IEnumerable<T><RecorderFileFormat> | An IEnumerable of RecorderFileFormat representing the supported file formats. |
See Also
Declaration
C#Copy[Obsolete("Deprecated in API10; Will be removed in API12")] public IEnumerable<RecorderVideoCodec> GetSupportedVideoCodecs()
Returns
| Type | Description |
|---|---|
| System.Collections.Generic.IEnumerable<T><RecorderVideoCodec> | An IEnumerable of RecorderVideoCodec representing the supported video codecs. |
See Also
GetSupportedVideoResolutions()
Gets the video resolutions that the current device supports.
Declaration
C#Copy[Obsolete("Deprecated in API10; Will be removed in API12")] public IEnumerable<Size> GetSupportedVideoResolutions()
Returns
| Type | Description |
|---|---|
| System.Collections.Generic.IEnumerable<T><Size> | An IEnumerable of Size representing the supported resolutions. |
See Also
Declaration
C#Copy[Obsolete("Deprecated in API10; Will be removed in API12")] public 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.
Exceptions
| Type | Condition |
|---|---|
| System.InvalidOperationException | The recorder is not in the valid state. |
| System.ObjectDisposedException | The StreamRecorder has already been disposed. |
Declaration
C#Copy[Obsolete("Deprecated in API10; Will be removed in API12")] public void Prepare(StreamRecorderOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| StreamRecorderOptions | options | The options for recording. |
Remarks
The recorder must be Idle.
Exceptions
| Type | Condition |
|---|---|
| System.InvalidOperationException | The recorder is not in the valid state. |
| System.ArgumentException | |
| System.NotSupportedException |
|
| System.ObjectDisposedException | The StreamRecorder has already been disposed. |
See Also
Declaration
C#Copy[Obsolete("Deprecated in API10; Will be removed in API12")] public void PushBuffer(MediaPacket packet)
Parameters
| Type | Name | Description |
|---|---|---|
| MediaPacket | packet | An audio or video packet to record. |
Remarks
Exceptions
| Type | Condition |
|---|---|
| System.InvalidOperationException | The recorder is not in the valid state. |
| System.ObjectDisposedException | The StreamRecorder has already been disposed. |
Declaration
C#Copy[Obsolete("Deprecated in API10; Will be removed in API12")] public 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.
Exceptions
| Type | Condition |
|---|---|
| System.InvalidOperationException | The recorder is not in the valid state. |
| System.UnauthorizedAccessException | The access of the resources can not be granted. |
| System.ObjectDisposedException | The StreamRecorder has already been disposed. |
Declaration
C#Copy[Obsolete("Deprecated in API10; Will be removed in API12")] public 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.
Exceptions
| Type | Condition |
|---|---|
| System.InvalidOperationException | The recorder is not in the valid state. |
| System.ObjectDisposedException | The StreamRecorder has already been disposed. |
See Also
Events
Declaration
C#Copy[Obsolete("Deprecated in API10; Will be removed in API12")] public event EventHandler<StreamRecorderBufferConsumedEventArgs> BufferConsumed
Event Type
| Type | Description |
|---|---|
| System.EventHandler<TEventArgs><StreamRecorderBufferConsumedEventArgs> |
See Also
Declaration
C#Copy[Obsolete("Deprecated in API10; Will be removed in API12")] public event EventHandler<StreamRecorderErrorOccurredEventArgs> ErrorOccurred
Event Type
| Type | Description |
|---|---|
| System.EventHandler<TEventArgs><StreamRecorderErrorOccurredEventArgs> |
See Also
Declaration
C#Copy[Obsolete("Deprecated in API10; Will be removed in API12")] public event EventHandler<RecordingLimitReachedEventArgs> RecordingLimitReached
Event Type
| Type | Description |
|---|---|
| System.EventHandler<TEventArgs><RecordingLimitReachedEventArgs> |
See Also
Declaration
C#Copy[Obsolete("Deprecated in API10; Will be removed in API12")] public event EventHandler<RecordingStatusChangedEventArgs> RecordingStatusChanged
Event Type
| Type | Description |
|---|---|
| System.EventHandler<TEventArgs><RecordingStatusChangedEventArgs> |
See Also
Declaration
C#Copy[Obsolete("Deprecated in API10; Will be removed in API12")] public event EventHandler<StreamRecorderStateChangedEventArgs> StateChanged
Event Type
| Type | Description |
|---|---|
| System.EventHandler<TEventArgs><StreamRecorderStateChangedEventArgs> |