-
Hi, could you provide an example of how to send two video feeds at once (port 5004 and port 5005 for example). |
Beta Was this translation helpful? Give feedback.
Answered by
Sean-Der
Mar 17, 2024
Replies: 2 comments 1 reply
-
Hi @Sean-Zeo Can you describe what you are doing a bit more? Are you sending video from your browser? Are you sending video from pion/webrtc? Where is the video coming from? Why do you mention ports, are you doing rtp forwarding? thanks! |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi sir, I am using 'rtp-to-webrtc' example I want to send both a video and audio track at the same time. :) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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!