Skip to content
This repository was archived by the owner on Feb 25, 2026. It is now read-only.
This repository was archived by the owner on Feb 25, 2026. It is now read-only.

Can rtpReceiver.rtcpTransport retrieve null? #349

Closed

Description

@ibc
var transport = new RTCDtlsTransport(...);
var rtpReceiver = new RTCRtpReceiver(transport);

rtpReceiver.transport;
// => transport

rtpReceiver.rtcpTransport;
// => transport or null or undefined?

Activity

  1. aboba commented on Jan 18, 2016

    @aboba
    Contributor

    I believe that rtcpTransport should be unset in this case since an rtcpTransport was not supplied in the constructor.

  2. ibc commented on Jan 18, 2016

    @ibc
    ContributorAuthor

    Another approach would be for the getter to retrieve the effective RTCDtlsTransport, which at the end is the given transport.

    IMHO it should be clarified in the spec.

  3. aboba commented on Jan 19, 2016

    @aboba
    Contributor

    Just found the corresponding text in WebRTC 1.0.

    Section 5.2.1 (RTCRtpSender)

    The rtcpTransport attribute is the transport over which RTCP is sent and received. When BUNDLE is used, many RTCRtpSender objects will share one rtcpTransport and will all send and receive RTCP over the same transport. When RTCP mux is used, rtcpTransport will be null, and both RTP and RTCP traffic will flow over the transport described by transport.

    Section 5.3.1 (RTCRtpReceiver)

    The RTCRtpReceiver.rtcpTransport attribute is the transport over which RTCP is sent and received. When BUNDLE is used, many RTCRtpReceiver objects will share one RTCRtpReceiver.rtcpTransport and will all send and receive RTCP over the same transport. When RTCP mux is used, RTCRtpReceiver.rtcpTransport will be null, and both RTP and RTCP traffic will flow over RTCRtpReceiver.transport.

  4. ibc commented on Jan 19, 2016

    @ibc
    ContributorAuthor

    Clear. Thanks.

  5. reopened this on Jan 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions