Skip to content

Sending two separate video streams with rtp-to-webrtc under two different ports #2705

Answered by Sean-Der
Sean-Zeo asked this question in Q&A
Discussion options

You must be logged in to vote

Create however many tracks you want, basically copy these lines here

Create multiple listeners for each port you care about like this

Start a new goroutine for each listener and start reading packets like this

I would start a new repo under your github account and make the changes. If you get stuck drop the repo here and happy to help!

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Sean-Der
Comment options

Answer selected by Sean-Der
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #2704 on March 17, 2024 01:44.