Reading through the #1459 PR, for videoroom the multistream branch expects separate PeerConnections for publishing and subscribing. So a publisher can publish multiple streams (over PC1) and a subscriber can subscribe to streams from different publishers (over PC2), but a single PC can't be used for both Publish and Subscribe.
Is a PeerConnection 1-1 with a "handle" in Janus? E.g. each time I "attach" to the plugin, I can negotiate a single PeerConnection for that handle, which will be either publishing or subscribing.
My initial assumption was that for a given user(browser) I could "attach" once creating a single handle, and then publish/subscribe multiple times to that handle each negotiating a new PeerConnection / WebRTC transport to the browser. Am I correct that this isn't possible?
My current understanding is that in both Master and Multistream branches
- I need to "attach" for each PC/handle,
- each PC/handle can either publish _ or_ subscribe (not both)
- in master each PC can only contain one audio, one video and one data stream, but in the Multistream branch a PC can carry multiple streams (unified plan)
- in Multistream a single subscriber PC/handle can subscribe to streams from different publishers.
Before I get stuck into my refactoring, does this sound correct?
Many thanks!
Dave