On Tue, 14 Sep 2010 22:28:44 +0200 Andreas Volz <li...@brachttal.net> said:

> Hello,
> 
> I noticed that the emotion smart callbacks are at most undocumented. Or
> didn't I find the documentation?
> 
> What is the best way to detect that a file has played to the end?

yeah - not documented. "decode_stop" is what you want. well that's when it's
stopped playing (which it will at the end). you can get pos and check against
length of video if u want to be paranoid. see emotion_test src - it simply sets
a cb for this and:

static void
video_obj_stopped_cb(void *data, Evas_Object *obj, void *event_info)
{
   printf("video stopped!\n");
   emotion_object_position_set(obj, 0.0);
   emotion_object_play_set(obj, 1);
}

ie sets position back to 0 and plays again (loops). :)


-- 
------------- Codito, ergo sum - "I code, therefore I am" --------------
The Rasterman (Carsten Haitzler)    ras...@rasterman.com


------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to