Class MediaStreamSource

    Definition

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

    Provides the ability to push packets as the source of Player.

    public sealed class MediaStreamSource : MediaSource
    Inheritance
    object
    MediaSource
    MediaStreamSource
    Remarks

    The source must be set as a source to a player before pushing.

    Constructors

    View Source

    MediaStreamSource(AudioMediaFormat, VideoMediaFormat)

    Initializes a new instance of the MediaStreamSource class with the specified AudioMediaFormat and VideoMediaFormat.

    Declaration
    public MediaStreamSource(AudioMediaFormat audioMediaFormat, VideoMediaFormat videoMediaFormat)
    Parameters
    Type Name Description
    AudioMediaFormat audioMediaFormat

    The AudioMediaFormat for this source.

    VideoMediaFormat videoMediaFormat

    The VideoMediaFormat for this source.

    Remarks

    AAC and H.264 are supported.

    See Also
    SupportedAudioTypes
    SupportedVideoTypes
    View Source

    MediaStreamSource(AudioMediaFormat)

    Initializes a new instance of the MediaStreamSource class with the specified AudioMediaFormat.

    Declaration
    public MediaStreamSource(AudioMediaFormat audioMediaFormat)
    Parameters
    Type Name Description
    AudioMediaFormat audioMediaFormat

    The AudioMediaFormat for this source.

    Remarks

    AAC is supported.

    See Also
    SupportedAudioTypes
    View Source

    MediaStreamSource(VideoMediaFormat)

    Initializes a new instance of the MediaStreamSource class with the specified VideoMediaFormat.

    Declaration
    public MediaStreamSource(VideoMediaFormat videoMediaFormat)
    Parameters
    Type Name Description
    VideoMediaFormat videoMediaFormat

    The VideoMediaFormat for this source.

    Remarks

    H.264 is supported.

    See Also
    SupportedVideoTypes

    Properties

    View Source

    AudioConfiguration

    Gets the audio configuration, or null if no AudioMediaFormat is specified in the constructor.

    Declaration
    public MediaStreamConfiguration AudioConfiguration { get; }
    Property Value
    Type Description
    MediaStreamConfiguration
    Remarks

    The source must be set as a source to a player before pushing.

    See Also
    SetSource(MediaSource)
    View Source

    Player

    Gets the Player that this source is assigned to as a source, or null if this source is not assigned.

    Declaration
    public Player Player { get; }
    Property Value
    Type Description
    Player
    Remarks

    The source must be set as a source to a player before pushing.

    See Also
    SetSource(MediaSource)
    View Source

    SupportedAudioTypes

    Gets the supported audio types of the media stream source.

    Declaration
    public static IEnumerable<MediaFormatAudioMimeType> SupportedAudioTypes { get; }
    Property Value
    Type Description
    IEnumerable<><MediaFormatAudioMimeType>
    Remarks

    The source must be set as a source to a player before pushing.

    See Also
    SetSource(MediaSource)
    View Source

    SupportedVideoTypes

    Gets the supported video types of the media stream source.

    Declaration
    public static IEnumerable<MediaFormatVideoMimeType> SupportedVideoTypes { get; }
    Property Value
    Type Description
    IEnumerable<><MediaFormatVideoMimeType>
    Remarks

    The source must be set as a source to a player before pushing.

    See Also
    SetSource(MediaSource)
    View Source

    VideoConfiguration

    Gets the video configuration, or null if no VideoMediaFormat is specified in the constructor.

    Declaration
    public MediaStreamConfiguration VideoConfiguration { get; }
    Property Value
    Type Description
    MediaStreamConfiguration
    Remarks

    The source must be set as a source to a player before pushing.

    See Also
    SetSource(MediaSource)

    Methods

    View Source

    Push(MediaPacket)

    Pushes elementary stream to decode audio or video packet.

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

    The MediaPacket to decode.

    Remarks

    This source must be set as a source to a player and the player must be in the Ready, Playing, or Paused state.

    Exceptions
    Type Condition
    NoBufferSpaceException

    The internal buffer has reached its limits.

    See Also
    SetSource(MediaSource)
    BufferMaxSize
    MediaPacket

    Extension Methods

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

    See Also

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