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

RTCPeerconnection connectionstate "failed" #35

Open
userv562 opened this issue May 17, 2019 · 0 comments
Open

RTCPeerconnection connectionstate "failed" #35

userv562 opened this issue May 17, 2019 · 0 comments

Comments

@userv562
Copy link

userv562 commented May 17, 2019

So I have the same exact code as you with the following exception:

peerConnection.createOffer(offerOptions).then(createdDescription).catch(errorHandler);
where

const offerOptions = {
  offerToReceiveAudio: 1,
  offerToReceiveVideo: 1
};

Furthermore, I am also using a TURN server: {'urls': 'turn:numb.viagenie.ca','credential': '**mypass','username': '**myusername'}

But when I check the peerConnection.connectionState in the console, it says "failed".

What I do is I open 2 incognito windows in Chrome and go to

https://localhost:8443

in each window.

Then I click the "Start Video" on one of the pages and then the remoteVideo shows up with an image (i.e. a snapshot) of the frame (on both the windows). Then the localVideo changes as I move the camera, but the remoteVideo stays as a snapshot of when the connection happened (on both the windows). Then I check to see the connectionState of the peerConnection and it says it failed.

I have tried looking for solutions, but I cannot find any. Is there something I am doing wrong please let me know.

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