Waylandsink 1.16.2
Nicolas Dufresne
nicolas at ndufresne.ca
Sat Jun 27 14:05:19 UTC 2020
Le sam. 27 juin 2020 08 h 45, horai <ivo.hora at seznam.cz> a écrit :
> 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?
>
Posting code is handy, but before that, could you explain how it fails ?
>
>
>
>
> --
> Sent from: http://gstreamer-devel.966125.n4.nabble.com/
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20200627/d8d1c90d/attachment.htm>
More information about the gstreamer-devel
mailing list