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

this._negotiator.startConnection error #920

Open
kisbalazs90 opened this issue Feb 4, 2022 · 1 comment
Open

this._negotiator.startConnection error #920

kisbalazs90 opened this issue Feb 4, 2022 · 1 comment
Labels
client related to peerjs client unconfirmed not yet verified as an issue

Comments

@kisbalazs90
Copy link

kisbalazs90 commented Feb 4, 2022

Hello

First, thanks for this WebRTC implementation. I'm using it (https://www.npmjs.com/package/peerjs 1.3.2) for video calls in an ionic 5 cross-platform app. Everything works fine in the first call, but when I would like to call again the partner, I got an error regarding the negotiator. It looks like this:
I think the error occurred at the part of the answer.

[Error] ERROR
TypeError: null is not an object (evaluating 'this._negotiator.startConnection')

I can't figure out what is happening. I tried everything to prevent it. I have no more idea.

Side A:
1. this.peer = new Peer(myId, options)
2. this.peer.call(partnerId, myStream)

Side B:
1. this.peer = new Peer(myId, options)
2.  this.peer.on('call', (call) => {
  this.inProgressCall = call;
  this.inProgressCall.answer(this.myStream);

  this.inProgressCall.on('stream', stream => {
     this.calleeEl.srcObject = stream;
  });
 })

I tried to unsubscribe from all events and back. Set the this.peer to null, and set again with new Peer(), close, reconnect, destroy. and tried many more things... but those are not helped me.

That's the only remaining thing in this project.
Hope I get some help.

So it works, but only one time.

Thanks.
Balazs

Update:
I think It happens at the call.answer.

@afrokick
Copy link
Member

Please, provide some example how to reproduce it. Without it it is hard to understand what go wrongs.

@afrokick afrokick added the unconfirmed not yet verified as an issue label Feb 20, 2022
@irgalamarr irgalamarr added the client related to peerjs client label Feb 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
client related to peerjs client unconfirmed not yet verified as an issue
Projects
None yet
Development

No branches or pull requests

3 participants