Android app is always using x-google-min-bitrate

196 views
Skip to first unread message

prakhar shukla

unread,
Aug 14, 2021, 1:29:40 PM8/14/21
to discuss-webrtc
My android client app is always using the bitrate value I set in x-google-min-bitrate. If I set it to 8 Mbps the videos are playing in full HD without any FPS drops. But if I set it to 400kbps, the bitrate at client side switches to 400Kbps in 5-10 seconds. I don't have network issues because it videos work fine if I set to higher bitrates. I have a good connection (200Mbps fiber). What could be the reason ? I also tried adding b=AS option in SDP still same issue.
My SDP modification is:
regex = var regex = "a=fmtp:(.*) (.*)".toRegex()
var newSDP = sdp.replace(regex, "a=fmtp:$1 $2;x-google-max-bitrate=26000;x-google-min-bitrate=400;x-google-start-bitrate=6000")

Above SDP modification works fine on my reactjs client. It tries to maintain high bitrate value.

I'm not modifying SDP or doing anything special at sender side.
Reply all
Reply to author
Forward
0 new messages