mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-03 09:01:50 -05:00
rtp-send: add configurable RTP stream name
Add configuration option 'stream_name' for stream/session name so user will see it on receiver side as RTP Strean ($stream_name) ex: load-module module-rtp-send source=rtp.monitor stream_name=MyServerMedia
This commit is contained in:
parent
9d7055004e
commit
bee9b9481a
1 changed files with 5 additions and 1 deletions
|
|
@ -66,6 +66,7 @@ PA_MODULE_USAGE(
|
|||
"loop=<loopback to local host?> "
|
||||
"ttl=<ttl value> "
|
||||
"inhibit_auto_suspend=<always|never|only_with_non_monitor_sources>"
|
||||
"stream_name=<name of the stream>"
|
||||
);
|
||||
|
||||
#define DEFAULT_PORT 46000
|
||||
|
|
@ -90,6 +91,7 @@ static const char* const valid_modargs[] = {
|
|||
"loop",
|
||||
"ttl",
|
||||
"inhibit_auto_suspend",
|
||||
"stream_name",
|
||||
NULL
|
||||
};
|
||||
|
||||
|
|
@ -469,7 +471,9 @@ int pa__init(pa_module*m) {
|
|||
k = sizeof(sa_dst);
|
||||
pa_assert_se((r = getsockname(fd, (struct sockaddr*) &sa_dst, &k)) >= 0);
|
||||
|
||||
n = pa_sprintf_malloc("PulseAudio RTP Stream on %s", pa_get_fqdn(hn, sizeof(hn)));
|
||||
n = pa_xstrdup(pa_modargs_get_value(ma, "stream_name", NULL));
|
||||
if (n == NULL)
|
||||
n = pa_sprintf_malloc("PulseAudio RTP Stream on %s", pa_get_fqdn(hn, sizeof(hn)));
|
||||
|
||||
if (af == AF_INET) {
|
||||
p = pa_sdp_build(af,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue