Waylandsink 1.16.2
horai
ivo.hora at seznam.cz
Sat Jun 27 11:38:36 UTC 2020
Dear all,
I have embedded multiple waylandsink overlays into GTK grid this way (the
eventbox should be responsible for catching mouse clicks as events):
for (int i = 0; i < numberOfRows; i++) {
for (int j = 0; j < numberOfCols; j++) {
if (counter <= numberOfStreams) {
eventBox = gtk_event_box_new();
gtk_widget_set_app_paintable(eventBox, TRUE);
gtk_widget_set_double_buffered(eventBox, FALSE);
gtk_widget_set_can_focus(eventBox, FALSE);
gtk_widget_set_hexpand(eventBox, TRUE);
gtk_widget_set_vexpand(eventBox, TRUE);
streamDataArray->streamDataArray[counter].video_widget =
eventBox;
g_print("widget: %d: %d\r\n", counter, eventBox);
g_signal_connect(streamDataArray->streamDataArray[counter].video_widget,
"draw", G_CALLBACK(video_widget_draw_cb), streamDataArray);
g_signal_connect(streamDataArray->streamDataArray[counter].video_widget,
"button_press_event", G_CALLBACK(hideWindow), streamDataArray);
streamBox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0);
gtk_widget_set_can_focus(streamBox, FALSE);
gtk_widget_set_hexpand(streamBox, TRUE);
gtk_widget_set_vexpand(streamBox, TRUE);
gtk_box_pack_start(GTK_BOX(streamBox),
GTK_WIDGET(streamDataArray->streamDataArray[counter].video_widget), TRUE,
TRUE, 0);
gtk_grid_attach(grid, GTK_WIDGET(streamBox), i, j, 1, 1);
counter++;
Upon click on the overlay I want to maximize single stream and hide all the
others via method hideWindow. This code works for 1.14.5 version of
Gstreamer, but does not work for 1.16.2.
We wanted to have fully native Wayland application.
Do you thing this could be a bug? Should I post code which enlights how the
waylandsink is tight to GTK?
--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
More information about the gstreamer-devel
mailing list