[gst-devel] how is buffering percentage implemented in playbin
Jyoti
jyoti.d at allaboutif.com
Thu Dec 17 12:09:26 CET 2009
I am writing an application where in I want to show the buffering status.
Is it not possible to monitor the level of queue in an application?
My motto is to display the buffering status something as below.
+---------------------------------------------------------------------------------
+
* *|* Buffering Progress Bar*
|
|
|
| |*=======*|...........|...........|...........|...........|...........|...........|...........|...........|
|
| 0 10 20 30 40 50 60 70 80 90
100 |
* | 20%
complete
|*
| |<------------------------ *Total
Duration*------------------------>| |
|
|
+----------------------------------------------------------------------------------+
I want to continuously show how much percent is been downloaded and how much
is
remaining. And also I want to start the playback only after say 10% of the
total data is
downloaded so as to get the uninterrupted playback.
Can you please suggest some ideas on this.
Thanks,
Jyoti
On Thu, Dec 17, 2009 at 3:59 PM, Wim Taymans <wim.taymans at gmail.com> wrote:
> On Thu, 2009-12-17 at 15:54 +0530, Jyoti wrote:
> > Thanks for the reply Wim.
> > I am actually looking out to get the buffering status for http uri.
> > I want to display the the current buffering level in percentage.
> > Based on the status I wanna show the buffering status over GUI.
> >
> > Now coming to playbin, how is the monitoring carried out for the fill
> > level of queues?
>
> In a very bad way, don't try to do this. It's better to use the method
> used in playbin2. Simply put queue2 between the source and the demuxer,
> you'll see buffering messages being posted.
>
> Wim
>
> >
> > Jyoti
> >
> > On Thu, Dec 17, 2009 at 3:43 PM, Wim Taymans <wim.taymans at gmail.com>
> > wrote:
> > On Thu, 2009-12-17 at 14:49 +0530, Jyoti wrote:
> > > Hi All,
> > >
> > > Can someone comment on methodology to detect buffering used
> > in
> > > gstplaybasebin.c..
> >
> >
> > Queues are put after the decoders and the fill level of those
> > queues is
> > monitored. Buffering messages are posted on the bus with the
> > fill
> > percentage. The buffering is only activated for a select
> > number of uris,
> > like http and mms. Not sure what you are asking for.
> >
> > Wim
> >
> >
> > >
> > > Thanks,
> > > Jyoti
> > >
> > >
> >
> ------------------------------------------------------------------------------
> > > This SF.Net email is sponsored by the Verizon Developer
> > Community
> > > Take advantage of Verizon's best-in-class app development
> > support
> > > A streamlined, 14 day to market process makes app
> > distribution fast and easy
> > > Join now and get one step closer to millions of Verizon
> > customers
> > > http://p.sf.net/sfu/verizon-dev2dev
> > > _______________________________________________
> > gstreamer-devel mailing list
> > gstreamer-devel at lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
> >
> >
> >
> >
> ------------------------------------------------------------------------------
> > This SF.Net email is sponsored by the Verizon Developer
> > Community
> > Take advantage of Verizon's best-in-class app development
> > support
> > A streamlined, 14 day to market process makes app distribution
> > fast and easy
> > Join now and get one step closer to millions of Verizon
> > customers
> > http://p.sf.net/sfu/verizon-dev2dev
> > _______________________________________________
> > gstreamer-devel mailing list
> > gstreamer-devel at lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
> >
> >
> ------------------------------------------------------------------------------
> > This SF.Net email is sponsored by the Verizon Developer Community
> > Take advantage of Verizon's best-in-class app development support
> > A streamlined, 14 day to market process makes app distribution fast and
> easy
> > Join now and get one step closer to millions of Verizon customers
> > http://p.sf.net/sfu/verizon-dev2dev
> > _______________________________________________ gstreamer-devel mailing
> list gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
>
>
>
> ------------------------------------------------------------------------------
> This SF.Net email is sponsored by the Verizon Developer Community
> Take advantage of Verizon's best-in-class app development support
> A streamlined, 14 day to market process makes app distribution fast and
> easy
> Join now and get one step closer to millions of Verizon customers
> http://p.sf.net/sfu/verizon-dev2dev
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20091217/6edfa374/attachment.htm>
More information about the gstreamer-devel
mailing list