skymaze / pymediasoup

mediasoup python client
MIT License
26 stars 14 forks source link

Can multiple audioProducers or videoProducers be supported? #15

Closed jacobtang closed 6 months ago

jacobtang commented 6 months ago

the examples mediasoup.py demo code, use one videoTrack and one audioTrack, it seems that a videoTrack corresponds to a videoProducer, and a audioTrack corresponds to a audioProducer. Init load device depends on self._tracks. self._tracks.append(videoTrack) self._tracks.append(audioTrack) self._device = Device( handlerFactory=AiortcHandler.createFactory(tracks=self._tracks) )

Thanks a lot!

skymaze commented 6 months ago

You can use multiple devices.

skymaze commented 6 months ago

mediasoup only extract first video and audio from sdp, see pymediasoup and mediasoup-client