Module webrtc.java

Class RTCRtpContributingSource

java.lang.Object
dev.onvoid.webrtc.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
    final double
    Only present for audio receivers.
    final long
    The last RTP timestamp, as defined in [RFC3550] Section 5.1, of the media played out at timestamp.
    final long
    The CSRC or SSRC identifier of the contributing or synchronization source.
    final long
    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.
  • Method Summary

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • 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 Details

    • 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.