Class RTCPFeedbackMessageSender
- java.lang.Object
-
- org.jitsi.impl.neomedia.rtp.translator.RTCPFeedbackMessageSender
-
public class RTCPFeedbackMessageSender extends Object
Allows sending RTCP feedback message packets such as FIR, takes care of their (command) sequence numbers.- Author:
- Boris Grozev, Lyubomir Marinov, George Politis
-
-
Constructor Summary
Constructors Constructor Description RTCPFeedbackMessageSender(RTPTranslatorImpl rtpTranslator)Initializes a new RTCPFeedbackMessageSender instance which is to send RTCP feedback message packets through a specific RTPTranslatorImpl.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidmaybeStopRequesting(org.jitsi.impl.neomedia.rtp.translator.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.booleanrequestKeyframe(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).booleanrequestKeyframe(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).booleansendFIR(int mediaSenderSSRC)Deprecated.Use the genericrequestKeyframe(long)instead.booleansendFIR(int[] mediaSenderSSRCs)Deprecated.Use the genericrequestKeyframe(long[])instead.
-
-
-
Constructor Detail
-
RTCPFeedbackMessageSender
public RTCPFeedbackMessageSender(RTPTranslatorImpl rtpTranslator)
Initializes a new RTCPFeedbackMessageSender instance which is to send RTCP feedback message packets through a specific RTPTranslatorImpl.- Parameters:
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
-
-
Method Detail
-
sendFIR
@Deprecated public boolean sendFIR(int mediaSenderSSRC)
Deprecated.Use the genericrequestKeyframe(long)instead.Sends an RTCP Full Intra Request (FIR) or Picture Loss Indication (PLI), to the media sender/source with a specific synchronization source identifier (SSRC). Whether to send a FIR or a PLI message is decided based on whether theMediaStreamassociated with the SSRC supports FIR or PLI.- Parameters:
mediaSenderSSRC- the SSRC of the media sender/source- Returns:
trueif an RTCP message was sent; otherwise,false.
-
requestKeyframe
public 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). Whether to send a FIR or a PLI message is decided based on whether theMediaStreamassociated with the SSRC supports FIR or PLI.- Parameters:
mediaSenderSSRC- the SSRC of the media sender/source- Returns:
trueif an RTCP message was sent; otherwise,false.
-
sendFIR
@Deprecated public boolean sendFIR(int[] mediaSenderSSRCs)
Deprecated.Use the genericrequestKeyframe(long[])instead.Sends an RTCP Full Intra Request (FIR) or Picture Loss Indication (PLI), to media senders/sources with a specific synchronization source identifiers (SSRCs). Whether to send a FIR or a PLI message is decided based on whether theMediaStreamassociated with the SSRC supports FIR or PLI.- Parameters:
mediaSenderSSRCs- the SSRCs of the media senders/sources- Returns:
trueif an RTCP message was sent; otherwise,false.
-
requestKeyframe
public 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). Whether to send a FIR or a PLI message is decided based on whether theMediaStreamassociated with the SSRC supports FIR or PLI.- Parameters:
mediaSenderSSRCs- the SSRCs of the media senders/sources- Returns:
trueif an RTCP message was sent; otherwise,false.
-
maybeStopRequesting
public void maybeStopRequesting(org.jitsi.impl.neomedia.rtp.translator.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.- Parameters:
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 packet
-
-