python – Implementing multiple live streams at the same time using aiortc – WebRTC
I need help with modifying the aiortc webRTC code to implement 4 live streams with different contents (video1 , video2 , video3 ,video4).
https://github.com/aiortc/aiortc/tree/main/examples/webcam
I am using above source for my purpose. I am trying to do multiple streams at the same time with different contents on different ports.
stream 1 --> port 8080
stream 2 --> port 8081
stream 3 --> port 8082
stream 4 --> port 8083
How can i achieve it.
Also, do i need to make any changes in its respective client.js and index.html?
I tried creating multiple VideoStreamTrack objects for different streams.
But i could not start multiple streams simultaneously. It starts only 1 stream then rest of the streams are not visible.
Read more here: Source link
