On Tue, 2009-10-20 at 18:10 +0100, Kevin DeKorte wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> On 10/20/09 10:52, Damien Lespiau wrote:
> > On Tue, 2009-10-20 at 16:50 +0100, Kevin DeKorte wrote:
> Funky clutter based progress bars and buttons are on the way, needed to
> use some existing parts to get things going. I have a "fosfor_button"
> developed which is a ClutterActor that highlights as you mouse over it
> and you can put gtk stock icons into it. You have a progress bar you
> particularly like? I was going to model the youtube one, but maybe there
> is something better.

I don't have anything special in mind, but yes, the youtube one seems
like a decent target.

> >> To do DVD menus I need to first hook the "element-added" function of the
> >> video-sink, so I do this...
> > 
> > "element-added" is a signal that GstBins fire.
> > 
> >> element =
> >> clutter_gst_video_texture_get_playbin(CLUTTER_GST_VIDEO_TEXTURE(media));
> >>    g_object_get(G_OBJECT(element),"video-sink",&video_sink, NULL);
> >>
> >>    if (video_sink != NULL) {
> >>            if (GST_IS_BIN(video_sink))
> > 
> > The variable called element is a GstBin (it's playbin, should evolve to
> > playbin2 before 1.0), so you can listen for "element-added" on that
> > GstElement.
> 
> Ok, I'll try that. I was just following the method that totem uses to
> obtain the navigation element.

Totem checks if the video-sink element attached to playbin is not a bin
itself (and tries to find the navigation element inside that bin).
ClutterGstVideoTexture can only have a ClutterGstVideoSink set as
video-sink on the internal playbin.

> Ok, so basically at the moment I can't accomplish what I need cause the
> code has not been written yet. 

Right, can't be done yet. 

> I don't exactly need the clicks to work
> however, I can sent navigation events to the navigation. Was thinking
> either a clutter based on screen remote if the mouse clicks were not
> possible.

The mouse clics still sound like a must have I guess (at some point!)

-- 
Damien

-- 
To unsubscribe send a mail to [email protected]

Reply via email to