Playbin2 Setting proxy

Otwoh a.guiavarch at gmail.com
Tue Jul 30 06:33:35 PDT 2013


Hello.

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, 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);
        }
        g_object_unref(source_element);
    }
}


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.


More information about the gstreamer-devel mailing list