[gst-devel] Seeking on a http/ssh/ftp stream

Tiago Katcipis katcipis at inf.ufsc.br
Thu Jul 30 14:59:56 CEST 2009


Thanks for the help guys, if i get it to work fine ill post here.

best regards,
katcipis

2009/7/30 Sebastian Dröge <sebastian.droege at collabora.co.uk>

> Am Donnerstag, den 30.07.2009, 06:10 +0400 schrieb LRN:
> > Tiago Katcipis wrote:
> > > I have a multimedia server that provides live playing of stored files,
> i
> > > receive a uri (that can be a SSH, FTP or HTTP), opens it, decode and
> send it
> > > back to the client.
> > >
> > > Everything works fine, im using gnomevfs to open the uri, the problem
> starts
> > > when i start to seek through the stream, it seens that gnomevfssrc does
> not
> > > handle seeking. Im aware of the existence of a giosrc element too, but
> until
> > > now i just have tried to work with gnomevfssrc.
> > >
> > > i already read something about that but it was old posts (saying that
> isnt
> > > possible), so i wanted to be sure, is giosrc ou gnomevfssrc capable of
> doing
> > > seeking on a http/ssh/ftp stream? I didnt find anything on the
> documentation
> > > and i cant be sure if its not working because im doing something wrong
> or if
> > > it wont work simply because it dont work.
> > >
> > > best regards,
> > > Katcipis
> > >
> > Everything boils down to this little macro:
> > #define GST_GIO_STREAM_IS_SEEKABLE(stream) (G_IS_SEEKABLE (stream) &&
> > g_seekable_can_seek (G_SEEKABLE (stream)))
> >
> > Which uses this little function:
> >
> http://library.gnome.org/devel/gio/stable/GSeekable.html#g-seekable-can-seek
> >
> > Which checks G_IS_SEEKABLE() and returns can_seek property of the
> > G_SEEKABLE_GET_IFACE
> > So, if you want to know whether you can seek a particular GIOSTREAM or
> > not, get its sources and grep for "->can_seek".
>
> That and note that giosrc isn't automatically used for HTTP because it
> doesn't support icecast, etc. Better use souphttpsrc, which can seek if
> the server supports it.
>



-- 
"it might be a profitable thing to learn Java, but it has no intellectual
value whatsoever" Alexander Stepanov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20090730/14965e75/attachment.htm>


More information about the gstreamer-devel mailing list