How to locate the xoverlay of gstreamer to an area in some browser.

Xabier Rodriguez Calvar xrcalvar at igalia.com
Fri Dec 9 02:26:24 PST 2011


O Xov, 08-12-2011 ás 23:37 -0800, forestzhu escribiu:
> 2)
> void start_player(PLUGIN_PLAYER  *player)
> {
> ...
> player->video_sink = gst_element_factory_make ("ximagesink", "video-sink");
> ...
> //in this space the player->xid is about 92274689 ,and then the plugin
> crashed
> gst_x_overlay_set_xwindow_id(GST_X_OVERLAY(GST_ELEMENT(player->video_sink)),player->xid); 
> ...
> gst_element_set_state(player->pipeline,GST_STATE_PLAYING);
> g_main_loop_run(loop);
> }

I guess you are looking for gst_x_overlay_set_render_rectangle [1] .
What I am not sure about is whether ximagesink supports that operation.
It supports setting the id, but not the render rectangle as far as I
remember. I think xvimagesink supports both.

[1]
http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-libs/html/gst-plugins-base-libs-gstxoverlay.html#gst-x-overlay-set-render-rectangle

Best regards.

-- 
Xabier Rodríguez Calvar
Software Engineer
IGALIA http://www.igalia.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20111209/a97ca236/attachment.pgp>


More information about the gstreamer-devel mailing list