Module webrtc.java

Class RTCRtpReceiver

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 Details

    • getTrack

      public MediaStreamTrack 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

      public RTCDtlsTransport 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

      public RTCRtpParameters getParameters()
      Returns the RTCRtpReceiver's current parameters containing information about how the track is decoded.
      Returns:
      The current parameters.
    • getContributingSources

      public List<RTCRtpContributingSource> 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

      public List<RTCRtpSynchronizationSource> 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.