Class MediaNullSource

    Definition

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

    Represents a media source that only receives media streams from peer.

    public sealed class MediaNullSource : MediaSource
    Inheritance
    object
    MediaSource
    MediaNullSource
    Remarks

    If you add this source, WebRTC only receives media stream.
    TransceiverDirection is set RecvOnly by default.

    Constructors

    View Source

    MediaNullSource()

    Initializes a new instance of the MediaNullSource class.

    Declaration
    public MediaNullSource()
    Remarks

    TransceiverCodec should be set to receive audio, video stream.

    See Also
    SetTransceiverCodec(MediaType, TransceiverCodec)

    Methods

    View Source

    GetSupportedTransceiverCodecs(MediaType)

    Retrieves the supported transceiver codecs for receiving media stream.

    Declaration
    public ReadOnlyCollection<TransceiverCodec> GetSupportedTransceiverCodecs(MediaType type)
    Parameters
    Type Name Description
    MediaType type

    The media type.

    Returns
    Type Description
    System.Collections.ObjectModel.ReadOnlyCollection<T><TransceiverCodec>

    The supported transceiver codecs.

    Remarks

    If you add this source, WebRTC only receives media stream.
    TransceiverDirection is set RecvOnly by default.

    Exceptions
    Type Condition
    System.ObjectDisposedException

    The WebRTC has already been disposed.

    See Also
    AddSource(MediaSource)
    View Source

    GetTransceiverCodec(MediaType)

    Gets the transceiver codec for receiving media stream.

    Declaration
    public TransceiverCodec GetTransceiverCodec(MediaType type)
    Parameters
    Type Name Description
    MediaType type

    The media type.

    Returns
    Type Description
    TransceiverCodec

    The transceiver codec.

    Remarks

    If you add this source, WebRTC only receives media stream.
    TransceiverDirection is set RecvOnly by default.

    Exceptions
    Type Condition
    System.InvalidOperationException

    MediaSource is not attached yet.

    System.ObjectDisposedException

    The WebRTC has already been disposed.

    See Also
    SetTransceiverCodec(MediaType, TransceiverCodec)
    View Source

    SetTransceiverCodec(MediaType, TransceiverCodec)

    Sets the transceiver codec for receiving media stream.

    Declaration
    public void SetTransceiverCodec(MediaType type, TransceiverCodec codec)
    Parameters
    Type Name Description
    MediaType type

    The media type.

    TransceiverCodec codec

    The transceiver codec.

    Remarks

    This method does not throw state exception anymore(Since API Level 12). It can be called in any state.

    Exceptions
    Type Condition
    System.InvalidOperationException

    MediaSource is not attached yet.

    System.ObjectDisposedException

    The WebRTC has already been disposed.

    See Also
    GetTransceiverCodec(MediaType)

    See Also

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