Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
How to make Qtmultimedia work with qtwayland and gst-waylandsink?
muddog last edited by
I'm trying to use QCamera to do preview and image capture for UVC camera on the i.mx6 platform which uses wayland backend (qtwayland, no Xcb). But it failed, after looking into the code of qgstreamervideooverlay.cpp, it only supports xcb platform with ximagesink and xvimagesink. To wayland backend, there's a waylanksink plugin in the gstreamer1.0-plugins-bad which is designed for wayland client surface to be sink. When I trying to hack the qgstreamervideooverlay.cpp to add the waylandsink support, it told me there's no available "display" (wl_display), it can not use a self display for a external window (in the gstwaylandsink.c).
Then I back to use weston (a wayland implementation for composer and client) client + gstwaylandsink to prove that waylandsink can work in wayland client, it does not have any problem (weston-gstreamer demo, https://git.collabora.com/cgit/user/gkiagia/weston.git/commit/?h=gst-wayland&id=b2aa3c31cc14d4662f67ede7d6ab9468cb68d1dc).
Could anybody give an example or teach me how to write a demo to use waylandsink to play a video or gstreamer videotestsrc on a QWidget? I also see someone done this before, but no more details: http://stackoverflow.com/questions/36006125/how-to-show-a-qt-widget-on-a-gstreamerwaylandsink-rendering-widget-in-weston