Hello,
Is there a recommended best practice to subscribe to newly appeared streams after a PeerConnection for subscription is already receiving existing streams from Janus gateway?
For example, if Janus notifies me through WebSocket an extra media is available, should I spawn a brand new PeerConnection for the new media stream, or is there any method for me to update the existing PeerConnection’s SDP so that I can use a single PeerConnection to subscribe to all current media streams and potentially future media streams?
I am working on an Android app using the video room plugin, the first time to set local and remote description on my PeerConnection instance is smooth, and media streams flow from publisher to subscriber without issues. But if I call PeerConnection.setRemoteDescription the second time, the second call does not take effect. This also prevents me from create SDP answers.
Thanks,
Chuan