Open Gesterezi opened 3 months ago
Hello @Gesterezi 👋
I apologize for the delay in replying to your issue. I've been very busy lately... 😅
Setting up a WebRTC server is complex, especially as there aren't many ready-to-use resources available...
The problem you're having is that you can't directly access the data sent by rtp2webrtc
using your browser.
You have to set up a web page, with the necessary JavaScript to retrieve the WebRTC feeds.
You'll find an example here: https://github.com/gaetanlhf/rtp2webrtc?tab=readme-ov-file#usage
What you'll get in your browser with your fake stream from ffmpeg :
If you're having trouble with CORS, I'd advise you to set up a reverse proxy, as in the example.
Don't hesitate to reply if you have a question, a problem, or if it works! 😄
Hello!
I tried your tool (setting up a WebRTC server is quite challenging when you're a rookie in this field, so your repo is very helpful). However, I’m not sure what I’m doing wrong. I launched your application with the example configuration.
I ran your app with only video mode (video + audio also does't work):
I also started a fake stream using this command:
ffmpeg -re -f lavfi -i testsrc=size=1280x720:rate=30 -vcodec libx264 -f rtp rtp://127.0.0.1:9903
I can see that your tool receives the stream, but when I check the output on port 8080, the page is blank:
The output of your logs is also blank:
Do I need any additional dependencies? I tried it on my MacOS and Ubuntu server
Thank you!