restcomm-android-sdk icon indicating copy to clipboard operation
restcomm-android-sdk copied to clipboard

Consider providing a way to adjust webrtc bandwidth in the SDK

Open atsakiridis opened this issue 7 years ago • 0 comments

That way we can avoid costs especially in Cellular Data type of scenarios. I think the idea here to use the SDP b-line. For example to enforce a 125 Kbps here's how it's done:

v=0
o=- 7846613599717303908 2 IN IP4 127.0.0.1
s=-
t=0 0
a=group:BUNDLE video
a=msid-semantic: WMS
m=video 50823 UDP/TLS/RTP/SAVPF 100 101 107 116 117 96 97 99 98
c=IN IP4 192.168.50.1
b=AS:125
a=rtcp:9 IN IP4 0.0.0.0
a=candidate:1687526950 1 udp 2122260223 192.168.50.1 50823 typ host generation 0 network-id 2
...

For starters we could enforce it only once when the call starts (as a parameter to RCDevice.connect() most probably), but later we can add it as an option for re-negotiation

Some resources:

atsakiridis avatar Sep 08 '16 09:09 atsakiridis