I have developed a VideoCall System through Ionic Cordova with PeerJS, it works properly on Android.
Now that I deployed to iOS from cordova, whenever I make second call (it works in the first time), it always gets an error: The PluginMediaStream with this id "any id" already exists, and cannot join to calls anymore, also the events from peerjs does not trigger for example:
peer.on('stream') does not trigger at all, I used this plugin to handle the MediaStreams, but for some reasons, after the first video call it says MediaStream already exists.
How can I trigger some events if I get a call from peer, onstream, onremove,
I tried to remove streams, tracks, and other stuff after ending video call, but it did not work.
Now that I deployed to iOS from cordova, whenever I make second call (it works in the first time), it always gets an error: The PluginMediaStream with this id "any id" already exists, and cannot join to calls anymore, also the events from peerjs does not trigger for example:
peer.on('stream') does not trigger at all, I used this plugin to handle the MediaStreams, but for some reasons, after the first video call it says MediaStream already exists.
How can I trigger some events if I get a call from peer, onstream, onremove,
I tried to remove streams, tracks, and other stuff after ending video call, but it did not work.