peers / peerjs

Simple peer-to-peer with WebRTC.
https://peerjs.com
MIT License
12.45k stars 1.43k forks source link

Call not working without page refresh #789

Open IbnAhmed opened 3 years ago

IbnAhmed commented 3 years ago

I am using peerjs in the vue.js application. I am keeping the peerjs related code in a component, that component is a popup. whenever I need to make a video call, I open that popup and run the peerjs related code. First-time video call works, but from the second-time video doesn't work anymore. It only works If I refresh the page.

console error image image

How can I solve this issue?

N.B: I am destroying peerjs instance every time after popup closed, and initiating new instance when popup open.

stacklast commented 2 years ago

I have the same issue.

IbnAhmed commented 2 years ago

@stacklast, I didn't find any solution for that issue. So, I changed the way of video-call. Instead of opening the video-call in popup, I am opening it in a new window.

stacklast commented 2 years ago

hi @IbnAhmed, yeah it's the same for me, right now I have all working without libraries using angular and WebRTC vanilla, without page refresh, I have that in popup too.

IbnAhmed commented 2 years ago

great @stacklast