-
-
Notifications
You must be signed in to change notification settings - Fork 9k
obs-webrtc: Add static stun server #12863
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
It's still missing translation for the setting field label. |
fa338be to
4032968
Compare
|
After some thinking I'm gonna add a checkbox to enable/disable waiting on candidates |
4032968 to
2e03e0a
Compare
|
Only missing the clang-format check at this point |
2e03e0a to
df8af96
Compare
|
I can't get the clang format check to pass, I must be missing something, |
|
Thank you so much for doing this @nab-os. It’s such a honor to see people use this :) Would setting STUN Servers via Link Header fit you use case? |
|
Hi @Sean-Der ! About the Link headers: I don't have a way to try that TURN is working properly tho. That would be nice if someone could try TURN servers. |
|
Is it normal that running EDIT: It was the clang-format version |
7ef6352 to
e4d83a8
Compare
e4d83a8 to
2c68604
Compare
|
Ready for review |
|
@nab-os What do you think of adding Trickle ICE support to Broadcast Box + OBS? We return the STUN server in the Link header, and then OBS posts the gathered candidate. It would be nice if a user could switch between OBS/FFmpeg/GStreamer etc... and get connectivity without having to configure their own STUN servers. |
|
@Sean-Der Ok I understand what you mean, clients should rely on the server to learn about the STUN/TURN server(s) |
|
Should we still try to merge this feature in case Trickle ICE is not implemented on the user's server ? |
|
@Sean-Der |
|
I HATE pushing back, I am a 'default yes' person. In the best interest of OBS/how the project operates I don't think this should be merged. Your 'Trickle ICE' PR is the better version of this. One of the goals for OBS is to make it is approachable as possible for users. Adding this to the UI hits a few points
If you disagree/OBS developers disagree I am totally fine with this getting merged though! I am just anticipating/trying to capture the spirit of previous discussions about OBS + UI. |
|
I kind of disagree because it would be in the "advanced" UI group and still solve a use case where Trickle ICE is not implemented server-side. |
Description
I added a way to configure a STUN Server to the WHIP configuration in a static way from the settings.

I added a text field and a checkbox in the stream settings page accessible only when selecting the WHIP output:
Motivation and Context
This change enables SDP negotiation to have every ice candidates before sending the offer.
This allows using servers that don't support Trickle ICE (I don't think it's implemented yet in the plugin anyway)
Currently ice servers are setup temporarily from Link headers from the SDP Answer.
How Has This Been Tested?
Tested behind a NAT on a distant whip server with nab-os/Omniroom
Types of changes
New feature: static STUN server configuration
Checklist: