Re: Are there Perl bindings for gstreamer-1.0?



Looking at the C docs, it appears that you'll need to cast the returned playsink to a type of GstVideoOverlay. It looks like, then, you'd be able to call: gst_video_overlay_set_window_handle(overlay, windowid);

Terence J. Ferraro


On Wed, Apr 30, 2014 at 5:17 PM, Steve Cookson <it sca-uk com> wrote:
Continuing on from my last point:


On 30/04/14 19:37, Steve Cookson wrote:
But I don't see how to go from $src to its base-class object (if such a beast exists) to use set_window_handle.

I found this in Python:

http://bazaar.launchpad.net/~jderose/+junk/gst-examples/view/head:/video-player-1.0

You just need to copy it into your own directory, change the video name to one in your directory and it will play.

Here is the Python code corresponding to the area we are looking at:

    def on_sync_message(self, bus, msg):
        if msg.get_structure().get_name() == 'prepare-window-handle':
            print('prepare-window-handle')
            msg.src.set_window_handle(self.xid)

That would equate to:

    $message->src->set_window_handle($drawing);

in our code.

But $message->src, just doesn't have that method.

So it seems like a bug in Introspection.

Do you think so?

Do you now where to log it?

Regards

Steve.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]