Class MediaPacketSource

    Definition

    Namespace:
    Tizen.Multimedia.Remoting
    Assembly:
    Tizen.Multimedia.Remoting.dll

    Represents a media source that wraps media data into MediaPacket.

    public sealed class MediaPacketSource : MediaSource, IDisplayable<uint>
    Inheritance
    object
    MediaSource
    MediaPacketSource
    Implements
    Tizen.Multimedia.IDisplayable<><uint>

    Constructors

    View Source

    MediaPacketSource(AudioMediaFormat)

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

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

    The AudioMediaFormat for this source.

    See Also
    SupportedAudioTypes
    View Source

    MediaPacketSource(VideoMediaFormat)

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

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

    The VideoMediaFormat for this source.

    See Also
    SupportedVideoTypes

    Properties

    View Source

    AudioConfiguration

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

    Declaration
    public MediaPacketSourceConfiguration AudioConfiguration { get; }
    Property Value
    Type Description
    MediaPacketSourceConfiguration
    See Also
    AddSource(MediaSource)
    AddSources(params MediaSource[])
    View Source

    SupportedAudioTypes

    Gets all supported audio types.

    Declaration
    public static IEnumerable<MediaFormatAudioMimeType> SupportedAudioTypes { get; }
    Property Value
    Type Description
    IEnumerable<><MediaFormatAudioMimeType>
    See Also
    AddSource(MediaSource)
    AddSources(params MediaSource[])
    View Source

    SupportedVideoTypes

    Gets all supported video types.

    Declaration
    public static IEnumerable<MediaFormatVideoMimeType> SupportedVideoTypes { get; }
    Property Value
    Type Description
    IEnumerable<><MediaFormatVideoMimeType>
    See Also
    AddSource(MediaSource)
    AddSources(params MediaSource[])
    View Source

    VideoConfiguration

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

    Declaration
    public MediaPacketSourceConfiguration VideoConfiguration { get; }
    Property Value
    Type Description
    MediaPacketSourceConfiguration
    See Also
    AddSource(MediaSource)
    AddSources(params MediaSource[])

    Methods

    View Source

    Push(MediaPacket)

    Pushes elementary stream to decode audio or video.

    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 WebRTC and the WebRTC must be in the Negotiating or Playing state

    See Also
    AddSource(MediaSource)
    AddSources(params MediaSource[])
    MediaPacket

    Implements

    Tizen.Multimedia.IDisplayable<>

    Extension Methods

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

    See Also

    AddSource(MediaSource)
    AddSources(params MediaSource[])
    • View Source
    Back to top Copyright © 2016-2025 Samsung
    Generated by DocFX