On Thu, 2010-09-16 at 06:27 +0100, Chris Debenham wrote:
> 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
Hi, This seems like a bug in resindvd. The playbin2 documentation has
some examples with dvd://1 and I would expect that to carry on working.
Have tried totem on that URL? (totem dvd://1). Either way, that's really
a GStreamer specific issue as clutter-gst is just a shim layer around
playbin2 and gives the URL directly and you should ask the GStreamer
guys too.
For DVD support, there are a number of things (navigation, jump through
chapters/titles) clutter-gst could provide but you are the first one
wanted to read DVDs and use clutter-gst I've heard about.
> 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 :-(
Well, that seems close (except that when using GST_FORMAT_TIME, the time
is in nanoseconds). I don't know what's wrong with the seek to title one
though, maybe the same bug than with giving the "dvd://1" URL to
playbin2?
HTH,
--
Damien
_______________________________________________
clutter-app-devel-list mailing list
[email protected]
http://lists.clutter-project.org/listinfo/clutter-app-devel-list