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

Failed to set local answer SDP on setLocalDescription for Chrome #216

Open
VicFrolov opened this issue Aug 16, 2021 · 1 comment
Open

Failed to set local answer SDP on setLocalDescription for Chrome #216

VicFrolov opened this issue Aug 16, 2021 · 1 comment

Comments

@VicFrolov
Copy link

Your environment.

  • Version: 1.7.2
  • Browser: Chrome Version 92.0.4515.131 (Official Build) (x86_64)
  • Error: index.js:1 DOMException: Failed to execute 'setLocalDescription' on 'RTCPeerConnection': Failed to set local answer sdp: Failed to set local video description recv parameters for m-section with mid='1'.

What did you do?

I am able to successfully connect to a remote stream in safari, but get the above error when trying to connect on chrome

    const serverUrl = getServerUrl(roomId);
    const signal = new IonSFUJSONRPCSignal(serverUrl);
    client = new Client(signal, config);

    signal.onopen = async () => {
      try {
        if (client) {
          await client.join(roomId, 'someUid');
        }
      } catch (err) {
        console.log('SETUP CLIENT ERROR', err);
      }
    };

    client.ontrack = (track, stream) => {
      if (track.kind === 'video') {
        track.onunmute = () => {
          const newVideoStream = {
            autoplay: true,
            id: stream.id,
            muted: false,
            srcObject: stream,
          };

          setVideoStream(newVideoStream);
        };
      }
    };

What did you expect?

No error to occur

What happened?

Error occurred in sdk on setLocalDescription

@RoyalBosS-Ayush
Copy link

Facing same. Did you find something that work out?

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

2 participants