[gst-devel] setting http proxy userid/password with playbin

Debsu debojyoti.pal at wipro.com
Thu Mar 4 11:03:26 CET 2010


Hi Tim,

As per your suggession, I wrote the following callback.
static 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_class_find_property(G_OBJECT_GET_CLASS(source_element),
"proxy-pw")) 
        {
            g_object_set (source_element, "proxy", "proxy_ip", "proxy-id",
"user_id", "proxy-pw", "passwd", NULL); 
        }
        g_object_unref(source_element);
    }
}

connect that callback with this:
    g_signal_connect(G_OBJECT(playbin), "notify::source",
G_CALLBACK(cb_playbin_notify_source), NULL);

But every time I am still getting the "Proxy Authentication Required" error.

Did I made any mistake?

-- 
View this message in context: http://n4.nabble.com/Playbin-unable-to-play-http-streaming-tp1576574p1577847.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.




More information about the gstreamer-devel mailing list