kmssink + gtk video window

Matthew Waters ystreet00 at gmail.com
Wed Jul 11 05:17:16 UTC 2018


On 11/07/18 15:09, nagendra sarma wrote:
> thanks Matt
>
> As i am new to gtk+ my question is little confusing.. sorry for that 
>
> i want to put my requirement more clear 
>
> i am creating media player using gtk+ and gstreamer (playbin) 
>
> gtk window opens with all controls in it.  on pressing play button i am
> creating playbin  using kmssink as video sink, the video is playing well but
> my gtk window is not visible , even mouse also not visible 
> my requirent is to keep my gtk+ window on top always with gstreamer running
> in background 
>
> please suggest how to achieve this ?

You can't easily integrate kmssink with gtk.  kmssink is simply not
built for that.  You can move the kmssink window around however it will
never be synchronized with gtk+.

You need to use a gtk compatible sink like gtksink or gtkglsink.  Or use
another video sink that implements the GstVideoOverlay interface for the
window system you're running with.

Cheers
-Matt

> regards
> Nagendra

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20180711/1b2ac3e2/attachment.sig>


More information about the gstreamer-devel mailing list