mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-03 09:01:54 -05:00
module-rtp-sink: add tool and ptime attributes
This commit is contained in:
parent
6a375d5778
commit
80a6880f33
1 changed files with 6 additions and 2 deletions
|
|
@ -580,16 +580,20 @@ static void send_sap(struct impl *impl, bool bye)
|
|||
"c=IN %s %s%s\n"
|
||||
"t=%u 0\n"
|
||||
"a=recvonly\n"
|
||||
"a=tool:PipeWire %s\n"
|
||||
"m=audio %u RTP/AVP %i\n"
|
||||
"a=rtpmap:%i %s/%u/%u\n"
|
||||
"a=type:broadcast\n",
|
||||
"a=type:broadcast\n"
|
||||
"a=ptime:%d\n",
|
||||
user_name, impl->ntp, af, src_addr,
|
||||
impl->session_name,
|
||||
af, dst_addr, dst_ttl,
|
||||
impl->ntp,
|
||||
pw_get_library_version(),
|
||||
impl->port, impl->payload,
|
||||
impl->payload, impl->format_info->mime,
|
||||
impl->info.rate, impl->info.channels);
|
||||
impl->info.rate, impl->info.channels,
|
||||
(impl->mtu / impl->frame_size) * 1000 / impl->info.rate);
|
||||
|
||||
iov[3].iov_base = buffer;
|
||||
iov[3].iov_len = strlen(buffer);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue