<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="PersonName" />
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->






<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Hi Ron,<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>I set the proxy, proxy user id and proxy
passwd for authentication by using the following callback:<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><span class=post-middle><font size=3 color=navy face="Times New Roman"><span style='font-size:12.0pt;color:navy'>static void
cb_playbin_notify_source(GObject *obj, GParamSpec *param, gpointer u_data) </span></font></span><font color=navy><span style='color:navy'><br>
<span class=post-middle>{ </span><br>
<span class=post-middle>&nbsp; &nbsp; if
(g_object_class_find_property(G_OBJECT_GET_CLASS(obj), &quot;source&quot;)) { </span><br>
<span class=post-middle>&nbsp; &nbsp; &nbsp; &nbsp; GObject *source_element; </span><br>
<span class=post-middle>&nbsp; &nbsp; &nbsp; &nbsp; g_object_get(obj,
&quot;source&quot;, &amp;source_element, NULL); </span><br>
<span class=post-middle>&nbsp; &nbsp; &nbsp; &nbsp; </span><br>
<span class=post-middle>&nbsp; &nbsp; &nbsp; &nbsp; if
(g_object_class_find_property(G_OBJECT_GET_CLASS(source_element),
&quot;proxy-id&quot;) &amp;&amp; \ </span><br>
<span class=post-middle>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
g_object_class_find_property(G_OBJECT_GET_CLASS(source_element),
&quot;proxy-pw&quot;)) </span><br>
<span class=post-middle>&nbsp; &nbsp; &nbsp; &nbsp; { </span><br>
<span class=post-middle>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; g_object_set
(source_element, &quot;proxy&quot;, &quot;proxy_ip&quot;, &quot;proxy-id&quot;,
&quot;user_id&quot;, &quot;proxy-pw&quot;, &quot;passwd&quot;, NULL); </span><br>
<span class=post-middle>&nbsp; &nbsp; &nbsp; &nbsp; } </span><br>
<span class=post-middle>&nbsp; &nbsp; &nbsp; &nbsp;
g_object_unref(source_element); </span><br>
<span class=post-middle>&nbsp; &nbsp; } </span><br>
<span class=post-middle>} </span><br>
<br>
<span class=post-middle>connect that callback with the playbin like this: </span><br>
<span class=post-middle>&nbsp; &nbsp; g_signal_connect(G_OBJECT(playbin),
&quot;notify::source&quot;, G_CALLBACK(cb_playbin_notify_source), NULL); </span><br>
<br>
<span class=post-middle>But every time I am still getting the &quot;Proxy
Authentication Required&quot; error. I set the http_proxy environment variable,
but still getting the same error.</span><br>
<br>
</span></font><font size=2 color=navy face=Arial><span style='font-size:10.0pt;
font-family:Arial;color:navy'></span><o:p></o:p></span></font></p>

</span></span></span></span></span></span></span></span></span></span></span></span></span></span>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Can you tell me why this error is coming
again and again? What mistake did I made? &nbsp;I check the proxy using Curl, its
fine.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Regards,<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Deb <o:p></o:p></span></font></p>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=2 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> Ron McOuat [via
GStreamer-devel] [mailto:<a href="http://n4.nabble.com/user/SendEmail.jtp?type=node&node=1578051&i=0" target="_top" rel="nofollow">[hidden email]</a>] <br>
<b><span style='font-weight:bold'>Sent:</span></b> Wednesday, February 24, 2010
11:36 AM<br>
<b><span style='font-weight:bold'>To:</span></b> <st1:PersonName w:st="on">Debojyoti
 Pal</st1:PersonName> (WT01 - PES-Mobile-Auto-CE Practice)<br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: Playbin unable to
play http stream</span></font><o:p></o:p></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>I added user authentication to souphttpsrc around Nov 2008 when there <br>
was no means to provide basic or digest authentication on direct access <br>
to a URL and souphttpsrc did not accept the <a href="http://user@password" target="_top" link="external" rel="nofollow">http://user@password</a>&nbsp; <br>
embedded format either and still does not. I had a strong need for this <br>
capability in my own work. Looking at the libsoup documentation it <br>
looked like it was possible to service error code <br>
SOUP_STATUS_PROXY_AUTHENTICATION_REQUIRED in the same callback routine <br>
as regular authentication SOUP_STATUS_UNAUTHORIZED both of which are in <br>
function gst_soup_http_src_authenticate_cb() so I added properties <br>
proxy_id and proxy_pw to the souphttpsrc element properties to source <br>
the values for proxy authentication. Unless libsoup reads the <br>
environment for these values and could do proxy authentication <br>
automatically I know I didn't put the code in to read the environment to <br>
pick up the properties from there instead of from the added element <br>
properties. In retrospect using the environment is likely a better <br>
approach because proxy settings are often a system setting. I also have <br>
limited ability to test this since proxy is not part of my environment. <br>
I suppose setting up squid is all that is really needed and force a test <br>
environment to use the squid setup. My workload has prevented me from <br>
testing this further. Maybe the best approach is to file a bug report <br>
and if there is someone better skilled at using a proxy environment to <br>
find what is wrong with this? I believe libsoup has had a number of <br>
issues with proxy over time but think that is not an issue now but don't <br>
take my word for it, I was getting this from reading the libsoup <br>
discussion area and not actual testing. <br>
<br>
Going back to the URL in the original request I tried the gst-launch <br>
command on a stock Ubuntu 9.10 Karmic system without a need for proxy <br>
and the pipeline says it got EOS during preroll and did not display the <br>
picture in a video sink which is not surprising since the URL content is <br>
only a single JPG image. I would normally associate using gstreamer with <br>
processing a sequence of video frames instead of just one image. Not to <br>
discourage you from gstreamer but grabbing a single image frame looks <br>
more like a file transfer job which libCurl you mention does quite well. <br>
I probably just don't know what you want to do with the image content <br>
after it is acquired so my comment is probably not valid. <br>
<br>
Ron <br>
<br>
On 10-02-23 8:52 PM, Debsu wrote: <o:p></o:p></span></font></p>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><br>
&gt; Hi Tim, <br>
&gt; <br>
&gt; You are right, that using souphttpsrc element is the better way of doing <br>
&gt; this. But in souphttpsrc element I am facing a strange problem. <br>
&gt; I am using playbin for display image which is nothing but a http source.
But <br>
&gt; souphttpsrc gives me the error of &quot;proxy-authentication failure&quot;
message, <br>
&gt; but http_proxy is already set in the environment variable. and also from <br>
&gt; commandline I can easily fetch that jpg file using libCurl. <br>
&gt; <br>
&gt; Regards, <br>
&gt; Deb <br>
&gt; &nbsp; &nbsp; <o:p></o:p></span></font></p>

</div>

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3 face="Times New Roman"><span style='font-size:12.0pt'><br>
------------------------------------------------------------------------------ <br>
Download Intel&reg; Parallel Studio Eval <br>
Try the new software tools for yourself. Speed compiling, find bugs <br>
proactively, and fine-tune applications for parallel performance. <br>
See why Intel Parallel Studio got high marks during beta. <br>
<a href="http://p.sf.net/sfu/intel-sw-dev" target="_top" link="external" rel="nofollow">http://p.sf.net/sfu/intel-sw-dev</a><br>
_______________________________________________ <br>
gstreamer-devel mailing list <br>
<a href="http://n4.nabble.com/user/SendEmail.jtp?type=node&amp;node=1566994&amp;i=0" target="_top" rel="nofollow" link="external">[hidden email]</a> <br>
<a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_top" link="external" rel="nofollow">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
<br>
<o:p></o:p></span></font></p>

<div class=MsoNormal align=center style='text-align:center'><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=1 width="100%" noshade color="#cccccc" align=center>

</span></font></div>

<div>

<p class=MsoNormal><font size=1 color="#666666" face=Tahoma><span style='font-size:8.5pt;font-family:Tahoma;color:#666666'>View message @ <a href="http://n4.nabble.com/Playbin-unable-to-play-http-stream-tp1561553p1566994.html" target="_top" rel="nofollow" link="external">http://n4.nabble.com/Playbin-unable-to-play-http-stream-tp1561553p1566994.html</a>
<br>
To unsubscribe from Re: Playbin unable to play http stream, <a target="_top" rel="nofollow" link="external">click
here</a>. <o:p></o:p></span></font></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

</div>

<P><strong><span style='font-size:10.0pt;font-family:
"Palatino Linotype","serif";color:green'> Please do not print this email unless it is absolutely necessary. </span></strong><span style='font-family:"Arial","sans-serif"'><o:p></o:p></span></p>


<p> The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. </p>

<p>WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. </p>
<p>
www.wipro.com
</p>




<br><hr align="left" width="300">
View this message in context: <a href="http://n4.nabble.com/Playbin-unable-to-play-http-stream-tp1561553p1578051.html">RE: Playbin unable to play http stream</a><br>
Sent from the <a href="http://n4.nabble.com/GStreamer-devel-f966125.html">GStreamer-devel mailing list archive</a> at Nabble.com.<br>