Android native swapping simulcast stream RID

99 views
Skip to first unread message

John Mikelich

unread,
Jan 20, 2022, 3:16:13 PM1/20/22
to discuss-webrtc
Below is our instantiation code for simulcasting. On the receiver end the RIDs are swapped,

0 is the high quality while 2 is the low quality. And everything we do does not change the index. It feels like we are missing something basic.

if (isVideoCallEnabled()) {
val l = RtpParameters.Encoding("0", true, 4.0)
val m = RtpParameters.Encoding("1", true, 4.0)
val h = RtpParameters.Encoding("2", true, 4.0)
l.apply {
minBitrateBps = 100_000
maxBitrateBps = 300_000
maxFramerate = 30
}
m.apply {
minBitrateBps = 300_000
maxBitrateBps = 600_000
maxFramerate = 30
}
h.apply {
minBitrateBps = 600_000
maxBitrateBps = 1_200_000
maxFramerate = 30
}
val listOfEncodings = listOf(
l, m, h
)
val transceiver = peerConnection?.addTransceiver(
localVideoTrack,
RtpTransceiver.RtpTransceiverInit(
RtpTransceiver.RtpTransceiverDirection.SEND_ONLY,
listOf(),
listOfEncodings
)
)

John Mikelich

unread,
Jan 26, 2022, 1:45:29 PM1/26/22
to discuss-webrtc
Ok,

Turns out that's JUST android webrtc native. We munged the sdp direct and flipped the order, that fixed it. Hope that helps anyone else who has this issue.

Reply all
Reply to author
Forward
0 new messages