java.lang.Object
dev.onvoid.webrtc.RTCRtpContributingSource
- Direct Known Subclasses:
RTCRtpSynchronizationSource
Contains information about a given contributing source (CSRC).
- Author:
- Alex Andres
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal 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
ConstructorsModifierConstructorDescriptionprotected
RTCRtpContributingSource
(long timestamp, long source, double audioLevel, long rtpTimestamp) Creates an instance of RTCRtpContributingSource with the specified contributing source information. -
Method Summary
-
Field Details
-
timestamp
public final long timestampIndicating 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 sourceThe CSRC or SSRC identifier of the contributing or synchronization source. -
audioLevel
public final double audioLevelOnly 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 rtpTimestampThe 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.
-