gst_video_overlay_set_window_handle from GTK#

doon don-prog at mail.ru
Sat Jan 16 17:42:25 PST 2016


Yes, of course and sorry for the delay.

C#:
[DllImport("libgstTestDLL.so", CharSet = CharSet.Ansi, CallingConvention =
CallingConvention.Cdecl)]
public extern static void play_file (StringBuilder path, IntPtr win);
//...
play_file (new StringBuilder ().Append
("file:///home/user/Downloads/test.mp4"), PBLocScreen.GdkWindow.Handle);	
//PBLocScreen - drawingarea

C++:
    void play_file(char* path, void* hwnd_ptr){
        gst_init(NULL, NULL);
        GdkWindow* gdkWin = (GdkWindow*)hwnd_ptr;
//...
        gst_video_overlay_set_window_handle(GST_VIDEO_OVERLAY(pipeline),
GDK_WINDOW_XID(gdkWin));
//...
}



--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/gst-video-overlay-set-window-handle-from-GTK-tp4675032p4675306.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list