Thanks for the help guys, if i get it to work fine ill post here. <br><br>best regards,<br>katcipis<br><br><div class="gmail_quote">2009/7/30 Sebastian Dröge <span dir="ltr">&lt;<a href="mailto:sebastian.droege@collabora.co.uk">sebastian.droege@collabora.co.uk</a>&gt;</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Am Donnerstag, den 30.07.2009, 06:10 +0400 schrieb LRN:<br>
<div class="im">&gt; Tiago Katcipis wrote:<br>
&gt; &gt; I have a multimedia server that provides live playing of stored files, i<br>
&gt; &gt; receive a uri (that can be a SSH, FTP or HTTP), opens it, decode and send it<br>
&gt; &gt; back to the client.<br>
&gt; &gt;<br>
&gt; &gt; Everything works fine, im using gnomevfs to open the uri, the problem starts<br>
&gt; &gt; when i start to seek through the stream, it seens that gnomevfssrc does not<br>
&gt; &gt; handle seeking. Im aware of the existence of a giosrc element too, but until<br>
&gt; &gt; now i just have tried to work with gnomevfssrc.<br>
&gt; &gt;<br>
&gt; &gt; i already read something about that but it was old posts (saying that isnt<br>
&gt; &gt; possible), so i wanted to be sure, is giosrc ou gnomevfssrc capable of doing<br>
&gt; &gt; seeking on a http/ssh/ftp stream? I didnt find anything on the documentation<br>
&gt; &gt; and i cant be sure if its not working because im doing something wrong or if<br>
&gt; &gt; it wont work simply because it dont work.<br>
&gt; &gt;<br>
&gt; &gt; best regards,<br>
&gt; &gt; Katcipis<br>
&gt; &gt;<br>
&gt; Everything boils down to this little macro:<br>
&gt; #define GST_GIO_STREAM_IS_SEEKABLE(stream) (G_IS_SEEKABLE (stream) &amp;&amp;<br>
&gt; g_seekable_can_seek (G_SEEKABLE (stream)))<br>
&gt;<br>
&gt; Which uses this little function:<br>
&gt; <a href="http://library.gnome.org/devel/gio/stable/GSeekable.html#g-seekable-can-seek" target="_blank">http://library.gnome.org/devel/gio/stable/GSeekable.html#g-seekable-can-seek</a><br>
&gt;<br>
&gt; Which checks G_IS_SEEKABLE() and returns can_seek property of the<br>
&gt; G_SEEKABLE_GET_IFACE<br>
&gt; So, if you want to know whether you can seek a particular GIOSTREAM or<br>
&gt; not, get its sources and grep for &quot;-&gt;can_seek&quot;.<br>
<br>
</div>That and note that giosrc isn&#39;t automatically used for HTTP because it<br>
doesn&#39;t support icecast, etc. Better use souphttpsrc, which can seek if<br>
the server supports it.<br>
</blockquote></div><br><br clear="all"><br>-- <br>&quot;it might be a profitable thing to learn Java, but it has no intellectual value whatsoever&quot; Alexander Stepanov<br>