Hello everybody,
I try to get notified when a video ends and registered a callback to the
EOS-signal.
But my callback is never called (the "progress" callback works). I can see in
the clutter-gst
code that the signal is directly bound to the EOS bus-message of gstreamer. It
seems that this
message is not sent or does not reach the clutter-code.
static void on_video_done(ClutterMedia *clutter_media, gpointer user_data) {
char *filename = user_data;
printf("on_video_done: %s", filename);
}
int main (int argc, char *argv[]) {
clutter_init( &argc, &argv );
gst_init( &argc, &argv );
// ...
char *filename = "/home/lukas/test.mpg";
ClutterActor *actor = clutter_gst_video_texture_new();
clutter_media_set_filename(CLUTTER_MEDIA(actor), filename);
g_signal_connect(CLUTTER_MEDIA(actor), "eos", G_CALLBACK(on_video_done),
filename);
// ...
clutter_media_set_playing(CLUTTER_MEDIA(actor), TRUE);
clutter_main();
// ...
}
I'm using the latest git-versions of clutter and clutter-gst and a current
gstreamer-release 0.10.xx
on ubuntu 9.04.
thanks,
Lukas
--
To unsubscribe send a mail to [email protected]