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"><<a href="mailto:sebastian.droege@collabora.co.uk">sebastian.droege@collabora.co.uk</a>></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">> Tiago Katcipis wrote:<br>
> > I have a multimedia server that provides live playing of stored files, i<br>
> > receive a uri (that can be a SSH, FTP or HTTP), opens it, decode and send it<br>
> > back to the client.<br>
> ><br>
> > Everything works fine, im using gnomevfs to open the uri, the problem starts<br>
> > when i start to seek through the stream, it seens that gnomevfssrc does not<br>
> > handle seeking. Im aware of the existence of a giosrc element too, but until<br>
> > now i just have tried to work with gnomevfssrc.<br>
> ><br>
> > i already read something about that but it was old posts (saying that isnt<br>
> > possible), so i wanted to be sure, is giosrc ou gnomevfssrc capable of doing<br>
> > seeking on a http/ssh/ftp stream? I didnt find anything on the documentation<br>
> > and i cant be sure if its not working because im doing something wrong or if<br>
> > it wont work simply because it dont work.<br>
> ><br>
> > best regards,<br>
> > Katcipis<br>
> ><br>
> Everything boils down to this little macro:<br>
> #define GST_GIO_STREAM_IS_SEEKABLE(stream) (G_IS_SEEKABLE (stream) &&<br>
> g_seekable_can_seek (G_SEEKABLE (stream)))<br>
><br>
> Which uses this little function:<br>
> <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>
><br>
> Which checks G_IS_SEEKABLE() and returns can_seek property of the<br>
> G_SEEKABLE_GET_IFACE<br>
> So, if you want to know whether you can seek a particular GIOSTREAM or<br>
> not, get its sources and grep for "->can_seek".<br>
<br>
</div>That and note that giosrc isn't automatically used for HTTP because it<br>
doesn'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>"it might be a profitable thing to learn Java, but it has no intellectual value whatsoever" Alexander Stepanov<br>