ion-sdk-js icon indicating copy to clipboard operation
ion-sdk-js copied to clipboard

Modify answer SDP error

Open edwinsyarief opened this issue 3 years ago • 0 comments

Your environment.

  • Version: Latest from git
  • Browser: latest chrome
  • Other Information - image

What did you do?

Modify answer SDP

           sfuObj.answer = (answer) => {
            LOG && console.log("****** answer: ", answer);
            let sdp = this.setApplicationSpecificBandwidth(
              answer.sdp,
              bandwidth,
              this.currentScreenShare
            );
            sdp = this.setVideoBitrates(sdp, {
              min: bandwidth.video,
              max: bandwidth.video,
            });
            sdp = this.setOpusAttributes(sdp, {
              stereo: 0, // to disable stereo (to force mono audio)
              "sprop-stereo": 1,
              maxaveragebitrate: 500 * 1024 * 8, // 500 kbits
              maxplaybackrate: 500 * 1024 * 8, // 500 kbits
              cbr: 0, // disable cbr
              useinbandfec: 1, // use inband fec
              usedtx: 1, // use dtx
              maxptime: 3,
            });
            answer.sdp = sdp;
          };

What did you expect?

Bandwidth usage decreased

What happened?

Error : "error creating answer: TypeError: provided value is not a valid enum value of type SDPType: '0' is not a valid enum value of type SDPType"

edwinsyarief avatar Apr 23 '21 14:04 edwinsyarief