Class MediaBufferSource

    Definition

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

    Represents a media source using memory.

    public sealed class MediaBufferSource : MediaSource
    Inheritance
    object
    MediaSource
    MediaBufferSource
    Remarks

    The buffer has to be filled with appropriate data which means it must be well-formatted. If you provide invalid data, you won't receive an error until Start() is called.

    Constructors

    View Source

    MediaBufferSource(byte[], int, int)

    Initializes a new instance of the MediaBufferSource class with buffer, length, and optional offset. with the specified length and the specified offset.

    Declaration
    public MediaBufferSource(byte[] buffer, int length, int offset = 0)
    Parameters
    Type Name Description
    byte[] buffer

    The source array to be copied into the buffer.

    int length

    The value indicating the number of bytes to copy from the buffer.

    int offset

    The value indicating the offset in the buffer of the first byte to copy.

    Remarks

    The buffer has to be filled with appropriate data which means it must be well-formatted. If you provide invalid data, you won't receive an error until Start() is called.

    Exceptions
    Type Condition
    System.ArgumentNullException

    buffer is null.

    System.ArgumentOutOfRangeException

    offset is less than zero.
    -or-
    length is equal to or less than zero.
    -or-
    offset+length is greater than buffer.Length.

    See Also
    SetSource(MediaSource)
    View Source

    MediaBufferSource(byte[])

    Initializes a new instance of the MediaBufferSource class with the specified buffer.

    Declaration
    public MediaBufferSource(byte[] buffer)
    Parameters
    Type Name Description
    byte[] buffer

    The source array to be copied into the buffer.

    Remarks

    The buffer has to be filled with appropriate data which means it must be well-formatted. If you provide invalid data, you won't receive an error until Start() is called.

    Exceptions
    Type Condition
    System.ArgumentNullException

    buffer is null.

    See Also
    SetSource(MediaSource)
    View Source

    MediaBufferSource(int)

    Initializes a new instance of the MediaBufferSource class with the specified buffer length.

    Declaration
    public MediaBufferSource(int length)
    Parameters
    Type Name Description
    int length

    The value indicating the size of the buffer.

    Remarks

    The buffer has to be filled with appropriate data which means it must be well-formatted. If you provide invalid data, you won't receive an error until Start() is called.

    Exceptions
    Type Condition
    System.ArgumentOutOfRangeException

    length is zero.
    -or-
    length is less than zero.

    See Also
    SetSource(MediaSource)

    Properties

    View Source

    Buffer

    Gets the byte array of this buffer.

    Declaration
    public byte[] Buffer { get; }
    Property Value
    Type Description
    byte[]
    Remarks

    The buffer has to be filled with appropriate data which means it must be well-formatted. If you provide invalid data, you won't receive an error until Start() is called.

    See Also
    SetSource(MediaSource)

    Methods

    View Source

    Wrap(byte[])

    Creates a MediaBufferSource that wraps a byte array.

    Declaration
    public static MediaBufferSource Wrap(byte[] buffer)
    Parameters
    Type Name Description
    byte[] buffer

    The array to be wrapped.

    Returns
    Type Description
    MediaBufferSource

    A MediaBufferSource wrapping the byte array.

    Remarks

    The buffer has to be filled with appropriate data which means it must be well-formatted. If you provide invalid data, you won't receive an error until Start() is called.

    See Also
    SetSource(MediaSource)

    See Also

    SetSource(MediaSource)
    • View Source
    Back to top Copyright © 2016-2024 Samsung
    Generated by DocFX