Class MediaStreamConfiguration

    Definition

    Namespace:
    Tizen.Multimedia
    Assembly:
    Tizen.Multimedia.MediaPlayer.dll

    Provides a means to configure properties and handle events for MediaStreamSource.

    public class MediaStreamConfiguration
    Inheritance
    object
    MediaStreamConfiguration

    Properties

    View Source

    BufferMaxSize

    Gets or sets the maximum size of the buffer for media stream.

    Declaration
    public ulong BufferMaxSize { get; set; }
    Property Value
    Type Description
    ulong

    The maximum size of the buffer in bytes. The default is 200000.

    Remarks

    If the buffer level overflows the maximum size, BufferStatusChanged will be raised with Overflow.

    Exceptions
    Type Condition
    System.InvalidOperationException

    The MediaStreamSource is not assigned to a player.

    System.ArgumentOutOfRangeException

    value is zero.

    See Also
    BufferStatusChanged
    View Source

    BufferMinThreshold

    Gets or sets the minimum threshold of the media stream buffer.

    Declaration
    public uint BufferMinThreshold { get; set; }
    Property Value
    Type Description
    uint

    The minimum threshold of the buffer in percentage. The default is zero.

    Remarks

    If the buffer level drops below the threshold value, BufferStatusChanged will be raised with Underrun.

    Exceptions
    Type Condition
    System.InvalidOperationException

    The MediaStreamSource is not assigned to a player.

    System.ArgumentOutOfRangeException

    value is greater than 100.

    See Also
    BufferStatusChanged

    Events

    View Source

    BufferStatusChanged

    Occurs when the buffer underruns or overflows.

    Declaration
    public event EventHandler<MediaStreamBufferStatusChangedEventArgs> BufferStatusChanged
    Event Type
    Type Description
    System.EventHandler<TEventArgs><MediaStreamBufferStatusChangedEventArgs>
    Remarks

    The event handler will be executed on an internal thread.

    See Also
    BufferMaxSize
    BufferMinThreshold
    View Source

    SeekingOccurred

    Occurs when the seeking is requested.

    Declaration
    public event EventHandler<MediaStreamSeekingOccurredEventArgs> SeekingOccurred
    Event Type
    Type Description
    System.EventHandler<TEventArgs><MediaStreamSeekingOccurredEventArgs>
    Remarks

    The event handler will be executed on an internal thread.

    See Also
    MediaStreamSource

    See Also

    MediaStreamSource
    • View Source
    Back to top Copyright © 2016-2024 Samsung
    Generated by DocFX