On Tue, Sep 6, 2016 at 3:26 PM, Gergely Polonkai <gerg...@polonkai.eu> wrote:
> how exactly do you play the video? Do you open a separate video player like > Totem, or you embed it somehow to your main window? I launch gstreamer as if it was an embedded video, but the output plugin supplied by the graphics vendor (imxeglvivsink) still causes the GTK main window to lose focus even when handed a parent window id. /* Initialize GStreamer */ gst_init (NULL, NULL); data.playbin = gst_element_factory_make ("playbin", "playbin"); /* Create the IMX EGL Sink */ data.sink = gst_element_factory_make ("imxeglvivsink", "videosink"); g_object_set (GST_OBJECT (data.sink), "parent", gtk_widget_get_window (mainwindow), NULL); g_object_set (GST_OBJECT (data.sink), "borderless-window", TRUE, NULL); //w = 400; h = 300; /* Create the IMX EGL Sink */ g_object_set (GST_OBJECT (data.sink), "window-width", w, NULL); g_object_set (GST_OBJECT (data.sink), "window-height", h, NULL); g_object_set (GST_OBJECT (data.sink), "window-x-coord", x, NULL); g_object_set (GST_OBJECT (data.sink), "window-y-coord", y, NULL); snprintf(cmd, sizeof(cmd), "file://%s", filename); g_object_set (data.playbin, "uri", cmd, NULL); g_object_set (GST_OBJECT (data.playbin), "video-sink", data.sink, NULL); /* Start playing */ gst_element_set_state (data.playbin, GST_STATE_PLAYING); Mark _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list