public class RTCPFeedbackMessageSender
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
(package private) class |
RTCPFeedbackMessageSender.KeyframeRequester
The KeyframeRequester is responsible for sending FIR requests to
a specific media sender identified by its SSRC.
|
Constructor and Description |
---|
RTCPFeedbackMessageSender(RTPTranslatorImpl rtpTranslator)
Initializes a new RTCPFeedbackMessageSender instance which is to
send RTCP feedback message packets through a specific
RTPTranslatorImpl.
|
Modifier and Type | Method and Description |
---|---|
(package private) void |
dispose()
Releases the resources allocated by this instance in the course of its
execution and prepares it to be garbage collected.
|
void |
maybeStopRequesting(StreamRTPManagerDesc streamRTPManager,
long ssrc,
byte[] buf,
int off,
int len)
Notifies this instance that an RTP packet has been received from a peer
represented by a specific StreamRTPManagerDesc.
|
boolean |
requestKeyframe(long mediaSenderSSRC)
Sends an RTCP Full Intra Request (FIR) or Picture Loss Indication (PLI),
to the media sender/source with a specific synchronization source
identifier (SSRC).
|
boolean |
requestKeyframe(long[] mediaSenderSSRCs)
Sends an RTCP Full Intra Request (FIR) or Picture Loss Indication (PLI),
to media senders/sources with a specific synchronization source
identifiers (SSRCs).
|
boolean |
sendFIR(int mediaSenderSSRC)
Deprecated.
Use the generic
requestKeyframe(long) instead. |
boolean |
sendFIR(int[] mediaSenderSSRCs)
Deprecated.
Use the generic
requestKeyframe(long[]) instead. |
public RTCPFeedbackMessageSender(RTPTranslatorImpl rtpTranslator)
rtpTranslator
- the RTPTranslatorImpl through which the new
instance is to send RTCP feedback message packets and the SSRC of which
is to be used as the SSRC of packet sender@Deprecated public boolean sendFIR(int mediaSenderSSRC)
requestKeyframe(long)
instead.MediaStream
associated with the SSRC supports FIR or PLI.mediaSenderSSRC
- the SSRC of the media sender/sourcetrue
if an RTCP message was sent; otherwise,
false
.public boolean requestKeyframe(long mediaSenderSSRC)
MediaStream
associated with the SSRC supports FIR or PLI.mediaSenderSSRC
- the SSRC of the media sender/sourcetrue
if an RTCP message was sent; otherwise,
false
.@Deprecated public boolean sendFIR(int[] mediaSenderSSRCs)
requestKeyframe(long[])
instead.MediaStream
associated with the SSRC supports FIR or PLI.mediaSenderSSRCs
- the SSRCs of the media senders/sourcestrue
if an RTCP message was sent; otherwise,
false
.public boolean requestKeyframe(long[] mediaSenderSSRCs)
MediaStream
associated with the SSRC supports FIR or PLI.mediaSenderSSRCs
- the SSRCs of the media senders/sourcestrue
if an RTCP message was sent; otherwise,
false
.public void maybeStopRequesting(StreamRTPManagerDesc streamRTPManager, long ssrc, byte[] buf, int off, int len)
streamRTPManager
- a StreamRTPManagerDesc which identifies
the peer from which an RTP packet has been receivedbuf
- the buffer which contains the bytes of the received RTP or
RTCP packetoff
- the zero-based index in buf at which the bytes of the
received RTP or RTCP packet beginlen
- the number of bytes in buf beginning at off
which represent the received RTP or RTCP packetvoid dispose()
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.