public class ResumableStreamRewriter extends Object
| Constructor and Description |
|---|
ResumableStreamRewriter() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
processRTCP(boolean rewrite,
byte[] buf,
int off,
int len)
Restores the RTP timestamp of the RTCP SR packet in the buffer.
|
boolean |
rewriteRTP(boolean accept,
byte[] buf,
int off,
int len)
Rewrites the sequence number of the RTP packet in the byte buffer,
hiding any gaps caused by drops.
|
public boolean rewriteRTP(boolean accept,
byte[] buf,
int off,
int len)
accept - true if the packet is accepted, false otherwisebuf - the byte buffer that contains the RTP packetoff - the offset in the byte buffer where the RTP packet startslen - the length of the RTP packet in the byte bufferpublic boolean processRTCP(boolean rewrite,
byte[] buf,
int off,
int len)
buf - the byte buffer that contains the RTCP packet.off - the offset in the byte buffer where the RTCP packet starts.len - the number of bytes in buffer which constitute the actual
data.Copyright © 2021 jitsi.org. All rights reserved.