QT Wayland Compositor example is not capable of handling videos
-
Greetings,
I am working on my own Wayland compositor and have been extending the official example in C++ known as minimal-cpp. However, I've encountered a problem: the compositor is unable to handle videos. From the information I've gathered online, I understand that the surfaces and sub-surfaces of the views should be handled automatically by the Qt framework, including any communication with OpenGL.
There's another example in QML, also called minimal-qml. Interestingly, this example is capable of playing videos, something the C++ example can't do.
I require this capability in the C++ example, so I'm left wondering why the minimal QML can handle video formats, while the minimal C++ cannot?
What's more, the QML example supports both xdg and ivi surfaces, but if I disable xdg surface, it too becomes incapable of playing videos.I would greatly appreciate it if someone could assist me in understanding this issue, particularly in regards to handling video formats in the minimal C++ example.
EDIT: To play the videos I am using this video widget from this example https://doc.qt.io/qt-6/qtmultimedia-videowidget-example.html. I tried this in qt version 6.5.2 and 6.7.2, same results for both .
Thank you for your help in advance.