docs.unity.cn
    Show / Hide Table of Contents

    Class RTCRtpTransceiver

    Inheritance
    Object
    RefCountedObject
    RTCRtpTransceiver
    Inherited Members
    RefCountedObject.disposed
    Namespace: Unity.WebRTC
    Syntax
    public class RTCRtpTransceiver : RefCountedObject, IDisposable

    Properties

    CurrentDirection

    This property indicates the transceiver's current directionality, or null if the transceiver is stopped or has never participated in an exchange of offers and answers. To change the transceiver's directionality, set the value of the Direction property.

    Declaration
    public RTCRtpTransceiverDirection? CurrentDirection { get; }
    Property Value
    Type Description
    Nullable<RTCRtpTransceiverDirection>

    Direction

    This is used to set the transceiver's desired direction and will be used in calls to CreateOffer and CreateAnswer.

    Declaration
    public RTCRtpTransceiverDirection Direction { get; set; }
    Property Value
    Type Description
    RTCRtpTransceiverDirection

    Mid

    Declaration
    public string Mid { get; }
    Property Value
    Type Description
    String

    Receiver

    Declaration
    public RTCRtpReceiver Receiver { get; }
    Property Value
    Type Description
    RTCRtpReceiver

    Sender

    Declaration
    public RTCRtpSender Sender { get; }
    Property Value
    Type Description
    RTCRtpSender

    Methods

    Dispose()

    Declaration
    public override void Dispose()
    Overrides
    RefCountedObject.Dispose()

    Finalize()

    Declaration
    protected void Finalize()

    SetCodecPreferences(RTCRtpCodecCapability[])

    Declaration
    public RTCErrorType SetCodecPreferences(RTCRtpCodecCapability[] codecs)
    Parameters
    Type Name Description
    RTCRtpCodecCapability[] codecs
    Returns
    Type Description
    RTCErrorType

    Stop()

    Declaration
    public RTCErrorType Stop()
    Returns
    Type Description
    RTCErrorType
    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on Tuesday, October 4, 2022
    Terms of use