Module webrtc.java

Class RTCRtpContributingSource

  • Direct Known Subclasses:
    RTCRtpSynchronizationSource

    public class RTCRtpContributingSource
    extends Object
    Contains information about a given contributing source (CSRC).
    Author:
    Alex Andres
    • Field Summary

      Fields 
      Modifier and Type Field Description
      double audioLevel
      Only present for audio receivers.
      long rtpTimestamp
      The last RTP timestamp, as defined in [RFC3550] Section 5.1, of the media played out at timestamp.
      long source
      The CSRC or SSRC identifier of the contributing or synchronization source.
      long timestamp
      Indicating the most recent time a frame from an RTP packet, originating from this source, was delivered to the RTCRtpReceiver's MediaStreamTrack.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected RTCRtpContributingSource​(long timestamp, long source, double audioLevel, long rtpTimestamp)
      Creates an instance of RTCRtpContributingSource with the specified contributing source information.
    • Field Detail

      • timestamp

        public final long timestamp
        Indicating the most recent time a frame from an RTP packet, originating from this source, was delivered to the RTCRtpReceiver's MediaStreamTrack.
      • source

        public final long source
        The CSRC or SSRC identifier of the contributing or synchronization source.
      • audioLevel

        public final double audioLevel
        Only present for audio receivers. This is a value between 0..1 (linear), where 1.0 represents 0 dBov, 0 represents silence, and 0.5 represents approximately 6 dBSPL change in the sound pressure level from 0 dBov.
      • rtpTimestamp

        public final long rtpTimestamp
        The last RTP timestamp, as defined in [RFC3550] Section 5.1, of the media played out at timestamp.
    • Constructor Detail

      • RTCRtpContributingSource

        protected RTCRtpContributingSource​(long timestamp,
                                           long source,
                                           double audioLevel,
                                           long rtpTimestamp)
        Creates an instance of RTCRtpContributingSource with the specified contributing source information.
        Parameters:
        timestamp - The most recent time a frame from an RTP packet.
        source - The CSRC or SSRC identifier of the contributing or synchronization source.
        audioLevel - The sound pressure level. Only present for audio receivers.
        rtpTimestamp - The last RTP timestamp.