Class StreamRecorder

    Definition

    Namespace:
    Tizen.Multimedia
    Assembly:
    Tizen.Multimedia.StreamRecorder.dll

    Provides the ability to record user buffer from application.

    public class StreamRecorder : IDisposable
    Inheritance
    object
    StreamRecorder

    Constructors

    View Source

    StreamRecorder()

    Initialize a new instance of the StreamRecorder class.

    Declaration
    public StreamRecorder()
    See Also
    Recorder

    Properties

    View Source

    State

    Gets the current state of the stream recorder.

    Declaration
    public RecorderState State { get; }
    Property Value
    Type Description
    RecorderState
    See Also
    Recorder

    Methods

    View Source

    Cancel()

    Cancels recording. The recording data is discarded and not written.

    Declaration
    public void Cancel()
    Remarks

    The recorder state must be Recording state by Start() or Paused state by Pause().

    See Also
    Start()
    Pause()
    View Source

    Commit()

    Stops recording and saves the result.

    Declaration
    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.

    See Also
    Start()
    Pause()
    View Source

    Dispose()

    Release any unmanaged resources used by this object.

    Declaration
    public void Dispose()
    See Also
    Recorder
    View Source

    Dispose(bool)

    Releases the resources used by the StreamRecorder.

    Declaration
    protected 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
    Recorder
    View Source

    GetSupportedAudioCodecs()

    Gets the audio codecs that the current device supports.

    Declaration
    public IEnumerable<RecorderAudioCodec> GetSupportedAudioCodecs()
    Returns
    Type Description
    IEnumerable<><RecorderAudioCodec>

    An IEnumerable of RecorderAudioCodec representing the supported audio codecs.

    See Also
    Recorder
    View Source

    GetSupportedFileFormats()

    Gets the file formats that the current device supports.

    Declaration
    public IEnumerable<RecorderFileFormat> GetSupportedFileFormats()
    Returns
    Type Description
    IEnumerable<><RecorderFileFormat>

    An IEnumerable of RecorderFileFormat representing the supported file formats.

    See Also
    Recorder
    View Source

    GetSupportedVideoCodecs()

    Gets the video codecs that the current device supports.

    Declaration
    public IEnumerable<RecorderVideoCodec> GetSupportedVideoCodecs()
    Returns
    Type Description
    IEnumerable<><RecorderVideoCodec>

    An IEnumerable of RecorderVideoCodec representing the supported video codecs.

    See Also
    Recorder
    View Source

    GetSupportedVideoResolutions()

    Gets the video resolutions that the current device supports.

    Declaration
    public IEnumerable<Size> GetSupportedVideoResolutions()
    Returns
    Type Description
    IEnumerable<><Size>

    An IEnumerable of representing the supported resolutions.

    See Also
    Recorder
    View Source

    Pause()

    Pauses recording.

    Declaration
    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.

    See Also
    Start()
    Commit()
    Cancel()
    View Source

    Prepare(StreamRecorderOptions)

    Prepares the stream recorder with the specified options.

    Declaration
    public void Prepare(StreamRecorderOptions options)
    Parameters
    Type Name Description
    StreamRecorderOptions options

    The options for recording.

    Remarks

    The recorder must be Idle.

    See Also
    Unprepare()
    Start()
    StreamRecorderOptions
    StreamRecorderAudioOptions
    StreamRecorderVideoOptions
    View Source

    PushBuffer(MediaPacket)

    Pushes a packet as recording raw data.

    Declaration
    public void PushBuffer(MediaPacket packet)
    Parameters
    Type Name Description
    MediaPacket packet

    An audio or video packet to record.

    Remarks

    The recorder state must be Recording state by Start().

    See Also
    Audio
    Video
    SourceFormat
    View Source

    Start()

    Starts recording.

    Declaration
    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.

    See Also
    Pause()
    Commit()
    Cancel()
    View Source

    Unprepare()

    Unprepares the stream recorder.

    Declaration
    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.

    See Also
    Prepare(StreamRecorderOptions)

    Events

    View Source

    BufferConsumed

    Occurs when a buffer had consumed completely.

    Declaration
    public event EventHandler<StreamRecorderBufferConsumedEventArgs> BufferConsumed
    Event Type
    Type Description
    EventHandler<><StreamRecorderBufferConsumedEventArgs>
    See Also
    Recorder
    View Source

    ErrorOccurred

    Occurs when an error occurred during a recorder operation.

    Declaration
    public event EventHandler<StreamRecorderErrorOccurredEventArgs> ErrorOccurred
    Event Type
    Type Description
    EventHandler<><StreamRecorderErrorOccurredEventArgs>
    See Also
    Recorder
    View Source

    RecordingLimitReached

    Occurs when recording limit is reached.

    Declaration
    public event EventHandler<RecordingLimitReachedEventArgs> RecordingLimitReached
    Event Type
    Type Description
    EventHandler<><RecordingLimitReachedEventArgs>
    See Also
    Recorder
    View Source

    RecordingStatusChanged

    Occurs when recording status is changed.

    Declaration
    public event EventHandler<RecordingStatusChangedEventArgs> RecordingStatusChanged
    Event Type
    Type Description
    EventHandler<><RecordingStatusChangedEventArgs>
    See Also
    Recorder
    View Source

    StateChanged

    Occurs when StreamRecorder state is changed.

    Declaration
    public event EventHandler<StreamRecorderStateChangedEventArgs> StateChanged
    Event Type
    Type Description
    EventHandler<><StreamRecorderStateChangedEventArgs>
    See Also
    Recorder

    Extension Methods

    EXamlExtensions.LoadFromEXaml<T>(T, string)
    EXamlExtensions.LoadFromEXamlByRelativePath<T>(T, string)
    EXamlExtensions.LoadFromEXamlPath<TXaml>(TXaml, string)
    EXamlExtensions.LoadFromEXamlPath<T>(T, Type)
    Extensions.LoadFromXaml<TXaml>(TXaml, string)
    Extensions.LoadFromXaml<TXaml>(TXaml, Type)
    Extensions.LoadFromXamlFile<TXaml>(TXaml, string)

    See Also

    Recorder
    • View Source
    Back to top Copyright © 2016-2025 Samsung
    Generated by DocFX