-
Notifications
You must be signed in to change notification settings - Fork 96
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
Uncaught TypeError, video streams not working #30
Comments
This is a very unusual real life problem. But i thing both the tabs starts to create the connection at the same time. |
This is an issue that affects usability of webRTC. The only workaround for now is to enforce one of the users to create the connection and then invite the other person |
I've attempted to recreate this issue quite a few times, both on http://webrtc.dennis.is and on https://localhost/webrtc/ which auto authorizes [since it's SSL] after the first load (so both tabs load pretty much as closely to the exact same time), but haven't had any luck in reproducing. |
Try loading up http://webrtc.dennis.is in two tabs before allowing camera and microphone access. I can notice the typeerrors are now gone but the video of the other user is empty in at least one of the two tabs. |
Ok, I ran into that same issue about a week ago (when video did not connect because one event fired before it was expected to), but then made some modifications to the codebase, and seemed to fix the issue on my local machine. You can grab the updates on my branch, or wait for them to be applied to this repo. |
Try again, I've merged @mudcube 's changes. |
The issue still persists after your latest merge. Here's how I reproduce it locally:
End result: The following errors in tab 2:
|
I investigated this issue further. The problem is that The
Fix The quick fix for this is to add a check for peer connection and initialize if it's undefined in
The question I have though is why peer connection initialization is deferred till the
I have working patches for both the fixes which I can submit. Wanted to discuss to be sure first. |
Hi kishorenc, it looks like http://webrtc.dennis.is/ not on the latest libs, so that would still be hitting issues. It sounds like you ran them on your localserver and came up with the same issues though? |
This is still happening from time to time and i'm running this on my local server. I also noted the 'add remote stream' event gets fired twice for the second user that allows camera access. |
I've had same problem, i've found workaround that works for me.
|
Testing the demo at http://webrtc.dennis.is/ i noticed the following:
Whenever i refresh the site in two different tabs simultaneously and allow them both within a short interval of each other, one of the tabs reports errors and both tabs have no video stream. This occurs once in a few tries. The errors reported in the console are the following:
Sometimes errors are not reported but the two different tabs do not have the two streams attached.
The text was updated successfully, but these errors were encountered: