java.lang.Object
dev.onvoid.webrtc.internal.NativeObject
dev.onvoid.webrtc.RTCRtpReceiver
public class RTCRtpReceiver
extends dev.onvoid.webrtc.internal.NativeObject
The RTCRtpReceiver allows an application to inspect the receipt of a
MediaStreamTrack.- Author:
- Alex Andres
-
Method Summary
Modifier and TypeMethodDescriptionReturns an RTCRtpContributingSource for each unique CSRC identifier received by this RTCRtpReceiver in the last 10 seconds, in descending timestamp order.Returns the RTCRtpReceiver's current parameters containing information about how the track is decoded.Returns an RTCRtpSynchronizationSource for each unique SSRC identifier received by this RTCRtpReceiver in the last 10 seconds, in descending timestamp order.getTrack()The track that is associated with this RTCRtpReceiver object.The transport over which media for the receiver's track is received in the form of RTP packets.
-
Method Details
-
getTrack
The track that is associated with this RTCRtpReceiver object. Note that track.stop() is final, although clones are not affected. Since receiver.track.stop() does not implicitly stop receiver, Receiver Reports continue to be sent.- Returns:
- The media track associated with this receiver.
-
getTransport
The transport over which media for the receiver's track is received in the form of RTP packets. When bundling is used, multiple RTCRtpReceivers will share one transport and will all receive RTP and RTCP over the same transport.- Returns:
- The transport over which media for the receiver's track is received.
-
getParameters
Returns the RTCRtpReceiver's current parameters containing information about how the track is decoded.- Returns:
- The current parameters.
-
getContributingSources
Returns an RTCRtpContributingSource for each unique CSRC identifier received by this RTCRtpReceiver in the last 10 seconds, in descending timestamp order.- Returns:
- A list of contributing sources in descending timestamp order.
-
getSynchronizationSources
Returns an RTCRtpSynchronizationSource for each unique SSRC identifier received by this RTCRtpReceiver in the last 10 seconds, in descending timestamp order.- Returns:
- A list of synchronization sources in descending timestamp order.
-