openwebrtc-ios-sdk icon indicating copy to clipboard operation
openwebrtc-ios-sdk copied to clipboard

Enable SCReAM congestion control

Open stefanalund opened this issue 10 years ago • 1 comments

SCReAM is now part of OpenWebRTC, but it needs to be enabled in the iOS SDK.

stefanalund avatar Dec 18 '15 10:12 stefanalund

This basically involves handling the signalling and then applying it to the OWR API.

sdp.js looks for a line formatted like: https://github.com/EricssonResearch/openwebrtc/blob/master/bridge/client/sdp.js#L49

Then it sets the payload.ericscream property to true or false accordingly: https://github.com/EricssonResearch/openwebrtc/blob/master/bridge/client/sdp.js#L232

So in the JavaScript bridge code, peerhandler.js checks this value and if it is true, sets the appropriate adaptation type on the payloads' adaptation property: https://github.com/EricssonResearch/openwebrtc/blob/master/bridge/worker/peerhandler.js#L247 audio payload: https://github.com/EricssonResearch/openwebrtc/blob/master/bridge/worker/peerhandler.js#L256 video payload: https://github.com/EricssonResearch/openwebrtc/blob/master/bridge/worker/peerhandler.js#L264

The same logic needs implementing in handleOfferReceive and handleAnswerReceived. And we also need to offer ericscream in generateOfferSDP and generateAnswerSDP.

superdump avatar Dec 18 '15 10:12 superdump