Skip to content

Commit 838e8f1

Browse files
Allow visitors' PLIs and FIRs to be forwarded. (#2351)
1 parent 6fc76e4 commit 838e8f1

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

jvb/src/main/kotlin/org/jitsi/videobridge/Endpoint.kt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -789,9 +789,11 @@ class Endpoint @JvmOverloads constructor(
789789
*/
790790
fun handleIncomingPacket(packetInfo: PacketInfo) {
791791
if (visitor) {
792-
/* Never forward RTP/RTCP from a visitor. */
793-
ByteBufferPool.returnBuffer(packetInfo.packet.buffer)
794-
return
792+
if (packetInfo.packet !is RtcpFbPliPacket && packetInfo.packet !is RtcpFbFirPacket) {
793+
/* Never forward RTP/RTCP from a visitor, except PLI/FIR. */
794+
ByteBufferPool.returnBuffer(packetInfo.packet.buffer)
795+
return
796+
}
795797
}
796798

797799
packetInfo.endpointId = id

0 commit comments

Comments
 (0)