On Sat, 3 Mar 2012 20:33:42 +0100 Davide Andreoli <[email protected]> said:

hmm well here's something missing in the gst backend. it never does
_emotion_progress_set() like xine does. xine exposes this as an event, not as a
state, and emotion passes changing in percentage progress (0.0 -> 1.0) .. i.e.
buffering already, but gst never hooked into tracking this. i also added the
xine back-end. in fact the generic module gets this wrong with
_player_position_changed() mit seems. progress isnt position in a stream/file -
it's progress in "preparation" = ie buffering, decompressing a zip archive, or
whatever is needed to get video starting to play. i also added a dummy (returns
1.0) implementation for generic and disabled this _emotion_progress_set() in
generic. in svn. tnx! :)

> Hi, here is a patch for emotion, it add a new function to retrive the
> status of the buffer while playing online stream.
> It is implemented only for the gstreamer backend, the xine one
> do not play at all here. What about the generic one?
> 
> **
> * @brief Get the percentual size of the buffering cache.
> *
> * @param obj The emotion object
> * @return The buffer percent size, ranging from 0.0 to 1.0
> *
> * The buffer size is returned as a number between 0.0 and 1.0, 0.0 means
> * the buffer if empty, 1.0 means full.
> * If no buffering is in progress 1.0 is returned. In all other cases (maybe
> * the backend don't support buffering) 1.0 is returned, thus you can always
> * check for buffer_size < 1.0 to know if buffering is in progress.
> *
> * @warning xine backends don't implement this (will return 1.0).
> */
> EAPI double emotion_object_buffer_size_get(const Evas_Object *obj);
> 
> the patch its at: http://pastebin.ca/2123878
> 
> 
> I'm not really sure about the func name, maybe could be:
> emotion_object_buffer_percent_get()
> 
> What do you think?
> 
> thanks
> davemds
> ------------------------------------------------------------------------------
> Virtualization & Cloud Management Using Capacity Planning
> Cloud computing makes use of virtualization - but cloud computing 
> also focuses on allowing computing to be delivered as a service.
> http://www.accelacomm.com/jaw/sfnl/114/51521223/
> _______________________________________________
> enlightenment-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
> 


-- 
------------- Codito, ergo sum - "I code, therefore I am" --------------
The Rasterman (Carsten Haitzler)    [email protected]


------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to