Change the parameters of udpsink gstreamer plugin at runtime

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Change the parameters of udpsink gstreamer plugin at runtime

karimchtx
Hi all,


I've developped an application for Android using gstreamer API (for
streaming voice other eth).

As I'm frequently switching dev/prod platforms I need to change the dest IP
address, port etc.

Not an expert of gstreamer-api, I was wondering how to dynamicaly change the
host and port parameters of udpsink plugin, at runtime.

Is it however possible ?


Thanks.

Karim



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Change the parameters of udpsink gstreamer plugin at runtime

Tim Müller
On Tue, 2021-01-12 at 07:34 -0600, karimchtx wrote:

Hi,

> As I'm frequently switching dev/prod platforms I need to change the
> dest IP address, port etc.
>
> Not an expert of gstreamer-api, I was wondering how to dynamicaly
> change the host and port parameters of udpsink plugin, at runtime.
>
> Is it however possible ?

With multiudpsink you should be able to use the "remove" and "add"
action signals to add/remove clients at runtime. udpsink derives from
multiudpsink, so that API should work on it too.

Cheers
 Tim

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Change the parameters of udpsink gstreamer plugin at runtime

karimchtx
Hi Tim,

Thanks for your suggestion.
I'vn't paid attention that updsink was actually deriving from multiupdsink
:(

I'll try the signal "add" and "remove" in my app...Just need to encapsulate
everything in the JNI pipe...

I'll let you know.

Thanks.

K.



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Change the parameters of udpsink gstreamer plugin at runtime

karimchtx
Hi Tim,

I've just tried the "add" and "remove" signal for "udpsink" plugin, it just
worked perfectly.

Thanks for your help.

Cheers.

K.



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel