This example demonstrates Subscribing to two different sources at once.
This is intended to be used with two others using the two-way example to put on a presentation, allowing anyone using this client to watch them converse.
The special note to be aware of when it comes to handling two streams is that they each need to use a different audio controller. At the moment, the only ones available are R5AudioControllerModeStandardIO
and R5AudioControllerModeEchoCancellation
.
self.subscribeStream!.audioController = R5AudioController(mode: R5AudioControllerModeStandardIO)
self.subscribeStream2?.audioController = R5AudioController(mode: R5AudioControllerModeEchoCancellation)
This means that at this time, iOS can only subscribe to a maximum of two streams, but the process of subscribing to multiple streams is otherwise straightforward.