Hi, <br><br>Using SoupHttpSrc u will get the media data.<br>Now u will connect decodebin next to SoupttpSrc.<br><br>SoupHttpSrc->decodebin: <br><br>Add a callback to decodebin on signal "<a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-plugins/html/gst-plugins-base-plugins-decodebin2.html#GstDecodeBin2-new-decoded-pad">new-decoded-pad</a>" <br>
You will get this callback when data will be decoded by your decodebin.<br>Here you will get a PAD as the pointer. You can use this pad and get the caps :)<br>and from caps -> Structure and using Structure again see u have media :)<br>
Now u can take the decision which Bin/ Element to be created next i.e. whether u want to create the audio sink bin or video sink bin, depending on the caps and link the PAD coming in the callback (this will be src pad of the decodebin) to the sink pad of the Video/Audio Sink Bin.<br>
I refered A/V Bin as u need to add Queue before A/V Sink.<br><br><br>If u want to handle the URI then create your source element using <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstUriHandler.html#gst-element-make-from-uri">gst_element_make_from_uri</a> <br>
This method will give u the HttpSrc plugin instance depending on the Availability and Rank.<br><br>Please let me know if i answered your query, or u wanted something else.<br>Others please correct me if i am wrong( as that will help at least two of us and may be many more).<br>
<br>BR<br>Manish<br><br><br><br><div class="gmail_quote">On Thu, Jun 19, 2008 at 6:44 PM, Israël Prince-Béliveau <<a href="mailto:ipbeliveau@classeaudio.com">ipbeliveau@classeaudio.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>
<div dir="ltr" align="left"><span><font color="#0000ff" size="2" face="Arial">Hi, </font></span></div>
<div dir="ltr" align="left"><span><font color="#0000ff" size="2" face="Arial"></font></span> </div>
<div dir="ltr" align="left"><span><font color="#0000ff" size="2" face="Arial">well, the thing is I've been able to use playbin instead of
decodebin for everything in my software, but this. If I understand, I can do the
same thing with decodebin but I have to do things manually(create every pads).
All of my src streams are souphttpsrc. Do I have access to similar
mechanism for uri handling, network buffering, end of stream, volume? Sorry for
all the questions. The most simple thing for me would be to have some kind of
message on the bus or a callback when the stream type as been
found.</font></span></div>
<div dir="ltr" align="left"><span><font color="#0000ff" size="2" face="Arial"></font></span> </div>
<div dir="ltr" align="left"><span><font color="#0000ff" size="2" face="Arial">The instruction that you gave me, are they using decodebin?
If I look at the example code on chapter 19, I don't see anything about buffers
in there. I don't want to be reinveting the wheel neither.</font></span></div>
<div dir="ltr" align="left"><span><font color="#0000ff" size="2" face="Arial"></font></span> </div>
<div dir="ltr" align="left"><span><font color="#0000ff" size="2" face="Arial">Thanks a lot.</font></span></div>
<div dir="ltr" align="left"><span><font color="#0000ff" size="2" face="Arial"></font></span> </div>
<div dir="ltr" align="left"><span><font color="#0000ff" size="2" face="Arial">Israel</font></span></div><br>
<div dir="ltr" align="left" lang="en-us">
<hr>
<font size="2" face="Tahoma"><b>From:</b> Manish Rana [mailto:<a href="mailto:manish.rana@gmail.com" target="_blank">manish.rana@gmail.com</a>]
<br><b>Sent:</b> Thursday, June 19, 2008 3:07 AM<br><b>To:</b> Israël
Prince-Béliveau<br><b>Cc:</b>
<a href="mailto:gstreamer-devel@lists.sourceforge.net" target="_blank">gstreamer-devel@lists.sourceforge.net</a><br><b>Subject:</b> Re: [gst-devel] mime
type of stream in playbin<br></font><br></div><div><div></div><div class="Wj3C7c">
<div></div>Hi, <br><br>Please get the Caps of the Coming Buffer using
gst_buffer_get_caps<br>then get the structure of the caps using
gst_caps_get_structure<br>and then use gst_structure_get_string( temp,
"media") to get the media type<br><br>this might help u <br>if u need more info
let me know <br><br>BR<br>Manish<br><br>
<div class="gmail_quote">On Thu, Jun 19, 2008 at 2:12 AM, Israël Prince-Béliveau
<<a href="mailto:ipbeliveau@classeaudio.com" target="_blank">ipbeliveau@classeaudio.com</a>>
wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>
<div><font size="2" face="Arial"><span>Hello,</span></font></div>
<div><font size="2" face="Arial"><span></span></font> </div>
<div><font size="2" face="Arial"><span>I'd like to get the mime type of the stream
for a playbin element. The thing is, I'd like to change the audio or video
sink depending on the mime type.</span></font></div>
<div><font size="2" face="Arial"><span>Can anyone help me on
this?</span></font></div>
<div><font size="2" face="Arial"><span></span></font> </div>
<div><span><font size="2" face="Arial">Thanks,</font></span></div>
<div><span><font size="2" face="Arial"></font></span> </div>
<div><span><font size="2" face="Arial">Israel</font></span></div></div><br>-------------------------------------------------------------------------<br>Check
out the new SourceForge.net Marketplace.<br>It's the best place to buy or sell
services for<br>just about anything Open Source.<br><a href="http://sourceforge.net/services/buy/index.php" target="_blank">http://sourceforge.net/services/buy/index.php</a><br>_______________________________________________<br>
gstreamer-devel
mailing list<br><a href="mailto:gstreamer-devel@lists.sourceforge.net" target="_blank">gstreamer-devel@lists.sourceforge.net</a><br><a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
<br></blockquote></div><br></div></div></div><br>-------------------------------------------------------------------------<br>
Check out the new SourceForge.net Marketplace.<br>
It's the best place to buy or sell services for<br>
just about anything Open Source.<br>
<a href="http://sourceforge.net/services/buy/index.php" target="_blank">http://sourceforge.net/services/buy/index.php</a><br>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
<br></blockquote></div><br>