module-rtp-sap: support PTP management protocol

Request current clock sync status to know the grandmaster identity for SAP announcements
This commit is contained in:
Dmitry Sharshakov 2024-01-18 12:50:41 +03:00 committed by Wim Taymans
parent 2f46ee2793
commit 7abb896aef
3 changed files with 239 additions and 7 deletions

View file

@ -68,6 +68,7 @@ context.modules = [
sap.port = 9875
net.ttl = 32
net.loop = false
ptp.management-socket = "/var/run/ptp4lro"
stream.rules = [
{
@ -116,7 +117,6 @@ context.modules = [
# please change this, especially for multiple streams
sess.name = "PipeWire RTP stream"
sess.media = "audio"
### please select the PTP grandmaster ID here
sess.ts-refclk = "ptp=traceable"
sess.ts-offset = 0
sess.latency.msec = 3
@ -135,6 +135,7 @@ context.modules = [
node.always-process = true
node.group = pipewire.ptp0
rtp.ntp = 0
rtp.fetch-ts-refclk = true
}
}
},