Gtk4 Video widget won't play file

Hello, I am trying to compile a simple gtk4 program where a video widget should play the selected file.
http://pastie.org/p/2MZ5wkU7DxEGvpGUScwfoQ
However once the application runs the video widget shows a black screen and upon trying to click the play button nothing seems to work.
I am compiling a .cpp file in Visual Studio Code with CMake on Windows.
The contents of my CMakeLists.txt file Pastie

What could be wrong?

Never mind, found the solution in this older post New Gtk4 Gtk.Video() widget
I was missing libgtk-4-media-gstreamer

1 Like