Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modify answer SDP error #196

Open
edwinsyarief opened this issue Apr 23, 2021 · 0 comments
Open

Modify answer SDP error #196

edwinsyarief opened this issue Apr 23, 2021 · 0 comments

Comments

@edwinsyarief
Copy link

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"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant