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

error #120

Open
Aakshara opened this issue Oct 8, 2020 · 2 comments
Open

error #120

Aakshara opened this issue Oct 8, 2020 · 2 comments

Comments

@Aakshara
Copy link

Aakshara commented Oct 8, 2020

I cannot see any video in step 6. Everything worked well but step 6 is the problem where I'm stuck now. There is slight error in index.html ,

<script src="/js/main.js"></script>, the / before js is missing. I have corrected it too, but still i cannot see the video.
@Aakshara
Copy link
Author

Aakshara commented Oct 8, 2020

The issue has been solved by doing nothing. But now i could see the send button and the snap &send button are disable.

@devworkerkim
Copy link

@Aakshara - I ran into the same problem here. Don't know if the symptoms are the same, but my console was outputting the following error:

Uncaught TypeError: Failed to construct 'RTCIceCandidate': sdpMid and sdpMLineIndex are both null.

The problem was some missing code in the main.js file that handles the 'candidate' type messages from the client.
@lukemcso made a great post with his solution on issue #102.

} else if (message.type === 'candidate') {
    peerConn.addIceCandidate(new RTCIceCandidate({
      sdpMLineIndex: message.label,
      sdpMid: message.id,
      candidate: message.candidate
    }));

Be sure to do a hard refresh in your browser (Chrome shortcut Ctrl+F5) so the changes are taken.

You can also compare the code from the previous step and notice the sdpMLineIndex line is missing in the step-06 main.js file.

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