YorVeX / xObsBeam

OBS plugin to transmit video and audio feeds between OBS instances, raw, or with lossless or lossy compression. NDI alternative.
https://obsproject.com/forum/resources/beam.1705/
MIT License
89 stars 5 forks source link

Peer discovery (UDP broadcast based sender discovery) #10

Closed YorVeX closed 1 year ago

YorVeX commented 1 year ago

Right now for TCP socket mode users have to manually enter an IP address or hostname of the sender. This should be simplified by using peer discovery based on UDP broadcasts.

There should be an additional setting to always use peer discovery (for every new connection) to identify the sender that is enabled by default. This mode is the most simple and should work in most scenarios, it is useful when 1. peer discovery always works reliably in the given network environment 2. the sender can't be found by hostname and changes its IP address from time to time, e.g. because it's auto-assigned through DHCP.

When it is disabled peer discovery can still be used as a helper to fill in the sender data (IP/host and port), but then Beam will only use this data for future connections and not automatically repeat the discovery process. This mode is useful when peer discovery cannot be done reliably or not at all, e.g. because involved network gear doesn't support UDP broadcasts, but then the sender needs to keep the same IP address or hostname all the time.