Support IPv6 for rtp-sap and rtp-sink modules
I'd like to use IPv6 for RTP and SAP. In my setup, IPv6 addresses are guaranteed to be stable, while IPv4s are only mostly stable.
On the receiving side I have PulseAudio (for reasons, I also tried PipeWire), where I load-module module-rtp-recv sap_address=::
. This makes PulseAudio listen on *:9875
, which should allow IPv6 SAP (and later RTP).
When I configure PipeWire on the sending side with e.g. sap.ip = "2001:db8::1"
in the rtp-sap module and restart, the log reads mod.rtp-sap: bind() failed: Invalid argument
.
When I switch SAP back to IPv4, but set an IPv6 as destination.ip
in the rtp-sink module and restart, the log reads mod.rtp-sink: connect() failed: Address family not supported by protocol
.
Both issues are probably due to missing handling of IPv6 addresses on PipeWire's side.
(Tested with PipeWire 1.0.1 on NixOS 23.11)