Hi,

On Thu, May 3, 2012 at 9:04 PM, Cedric BAIL <cedric.b...@free.fr> wrote:
> Hi,
>
> On Fri, May 4, 2012 at 1:44 AM, Flávio Ceolin
> <flavio.ceo...@profusion.mobi> wrote:
>> On Thu, May 3, 2012 at 11:49 AM, Flavio Ceolin
>> <flavio.ceo...@profusion.mobi> wrote:
>>> Hi folks,
>>>
>>> I've got a problem when using emotion. The signal "playback_started" is
>>> never called. I also have checked the emotion examples and the same
>>> happens. The others signals like "playback_finished" and "open_done" are
>>> working as expected. Bellow is my example:
>>>
>>> #include <Ecore.h>
>>> #include <Ecore_Evas.h>
>>> #include <Evas.h>
>>> #include <Emotion.h>
>>> #include <stdio.h>
>>>
>>> static void
>>> _playback_started_cb(void *data, Evas_Object *o, void *event_info)
>>> {
>>>    printf("Emotion object started playback.\n");
>>> }
>>>
>>> static Evas_Object *
>>> _create_emotion_object(Evas *e)
>>> {
>>>   Evas_Object *em = emotion_object_add(e);
>>>
>>>   emotion_object_init(em, "generic");
>>>
>>>   evas_object_smart_callback_add(
>>>       em, "playback_started", _playback_started_cb, NULL);
>>>
>>>   return em;
>>> }
>>>
>>> int
>>> main(int argc, const char *argv[])
>>> {
>>>   Ecore_Evas *ee;
>>>   Evas *e;
>>>   Evas_Object *bg, *em;
>>>
>>>   if (argc != 2)
>>>     {
>>>        printf("Usage: %s <filenames>\n", argv[0]);
>>>        return -1;
>>>     }
>>>
>>>   eina_init();
>>>
>>>   if (!ecore_evas_init())
>>>     return EXIT_FAILURE;
>>>
>>>   ee = ecore_evas_new(NULL, 80, 80, 640, 480, NULL);
>>>   if (!ee)
>>>     goto error;
>>>
>>>   ecore_evas_show(ee);
>>>
>>>   e = ecore_evas_get(ee);
>>>
>>>   bg = evas_object_rectangle_add(e);
>>>   evas_object_name_set(bg, argv[1]);
>>>   evas_object_color_set(bg, 255, 255, 255, 255);
>>>   evas_object_move(bg, 0, 0);
>>>   evas_object_resize(bg, 640, 480);
>>>   evas_object_show(bg);
>>>
>>>   em = _create_emotion_object(e);
>>>   emotion_object_file_set(em, argv[1]);
>>>   evas_object_move(em, 0, 0);
>>>   evas_object_resize(em, 640, 480);
>>>   evas_object_show(em);
>>>
>>>   evas_object_focus_set(bg, EINA_TRUE);
>>>
>>>   emotion_object_play_set(em, EINA_TRUE);
>>>
>>>   ecore_main_loop_begin();
>>>
>>>   ecore_evas_free(ee);
>>>   ecore_evas_shutdown();
>>>   return 0;
>>>
>>> error:
>>>
>>>   ecore_evas_shutdown();
>>>   eina_shutdown();
>>>   return -1;
>>> }
>>>
>>>
>>> Regards,
>>>
>>> Flavio Ceolin
>>> ProFUSION embedded systems
>>> http://profusion.mobi
>>
>> Hi folks,
>>
>> I bring bad news, I've found other problems with emotion. They are:
>>
>> 1) position_set when the emotion is paused
>>   If you do a position_set with the emotion paused and then do
>> position_get it'll
>>   return the old position.
>>
>> 2) pause the video before the "open_done" or "length_change" is not working.
>
> What engine are you using ? Generic VLC or Gstreamer ?
>
> Regards,
> --
> Cedric BAIL
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> enlightenment-devel mailing list
> enlightenment-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

I've tried with generic vlc.

Regards,

Flavio Ceolin
ProFUSION embedded systems
http://profusion.mobi

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to