On Tue, 13 May 2008 00:43:29 +0200 raoul <[EMAIL PROTECTED]> babbled:

> Hi,
> 
> Here is a small patch that add 2 functions to set/get a default Evas_Object
> in emotion, if there is no video. It's usefull when one don't want to have a 
> black (or any other color) screen if emotion failed to open a stream. It 
> works with an Evas_Object, so edje object could be used for some eye candy 
> animations :)
> 
> Here is the patch:
> http://www.calaos.fr/pub/emotion/patch_emotion_default_frame.diff
> 
> and a small test app with an edje file:
> http://www.calaos.fr/pub/emotion/test_emotion.c
> http://www.calaos.fr/pub/emotion/logo.edj
> 
> Any comments?

hmm i'd say no. here's why: you now have an extra object to control, possibly
destroy yourself or have emotion destroy as needed etc. etc. and that logic is
going into emotion itself. i would say it'd be better to have callbacks (smart
callbacks, just like there are ones for "frame_decode", "length_change",
"frame_resize", "decode_stop", "playback_finished", "audio_level_change",
"channels_change", "title_change", "progress_change", "ref_change",
"button_num_change", "button_change".

in fact - you don't need more signals. when you set play_set() to 1 - simple
hide the emotion object or do whatever you want (display some image or edje in
its place), then when you get the FIRST frame_decode callback after just
starting play, show the emotion object (or begin to fade it in, or zoom it out
or whatever you like!). so everything you need is already there :) no need to
complicate emotion itself.

> Regards,
> 
> -- 
> ------------------------
> Raoul Hecky
> 
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft 
> Defy all challenges. Microsoft(R) Visual Studio 2008. 
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> 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]


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to