Playbin2 Setting proxy

Tim-Philipp Müller t.i.m at zen.co.uk
Tue Jul 30 11:27:18 PDT 2013


On Tue, 2013-07-30 at 06:33 -0700, Otwoh wrote:

Hi,

> I have a c++ gstreamer application wich display youtube video. 
> It work very well with a direct internet connection.
> But when I have a proxy

This is an HTTP proxy, right? Not a SOCKS proxy?

> , uridecodebin fail to connect to the host.

> I found this callback on the web :
> void cb_playbin_notify_source(GObject *obj, GParamSpec *param, gpointer
> u_data)
> {
> 	if (g_object_class_find_property(G_OBJECT_GET_CLASS(obj), "source"))
> 	{
>         GObject *source_element;
>         g_object_get(obj, "source", &source_element, NULL);
> 
>        
> if(g_object_class_find_property(G_OBJECT_GET_CLASS(source_element),"proxy-id"))
>         {
> 		g_object_set(source_element, "proxy-id", "192.168.100.100:808", NULL);

Try:

 g_object_set (source_element,
               "proxy", "http://192.168.100.100:808",
               NULL);

("proxy-id" -> "proxy", and "http://" prefix to argument).

Cheers
 -Tim



> 
> But I received a GST_MESSAGE_ERROR : libsoup status code 3
> Note that I havn't any password on my proxy.
> 
> How can I specify my proxy url ?
> 
> 
> 
> --
> View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Playbin2-Setting-proxy-tp4661352.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel




More information about the gstreamer-devel mailing list