I am trying to get dvd playing of a certain title number working in my
app (lyricue) and can get the dvd displaying via :
background = clutter_gst_video_texture_new ();
clutter_media_set_uri(CLUTTER_MEDIA (background), "dvd://");
clutter_media_set_playing (CLUTTER_MEDIA (background), TRUE);
The problem is that this starts playing at the start of the disk
(normally the top menu) but I want to skip straight to a title number
(ie title 1)
Previously I could use "dvd://1" to jump to the first title, but this
no longer works with the resindvd plugin that is part of
gst-plugins-bad
I tried the following but it has no effect:
gst_element_seek_simple(clutter_gst_video_texture_get_playbin(CLUTTER_GST_VIDEO_TEXTURE(background)),
gst_format_get_by_nick("title"), GST_SEEK_FLAG_FLUSH |
GST_SEEK_FLAG_KEY_UNIT, 1);
I even tries to just jump 30 seconds via:
gst_element_seek(clutter_gst_video_texture_get_playbin(CLUTTER_GST_VIDEO_TEXTURE(background)),
1.0, GST_FORMAT_TIME, GST_SEEK_FLAG_FLUSH, GST_SEEK_TYPE_SET, 30,
0,0);
But it had no effect either.
I think I am using gst_element_seek wrong :-(
I can seek using clutter_media_set_position - but that doesn't support
jumping to other titles
Does anyone know what is going on here?
Thanks,
Chris
_______________________________________________
clutter-app-devel-list mailing list
[email protected]
http://lists.clutter-project.org/listinfo/clutter-app-devel-list