Important: Please read the Qt Code of Conduct -

QML Video error: "Could not create wrappped context for platform: 1"

  • Hi,

    As part of an app I'm developing I am trying to show some video files using the Video element in QML. I created some code to handle that a while ago and back then everything seemed to work perfectly. At some point over the past 3-4 months things must have stopped working. Now, when I try to play any video file I get:

    Could not create wrappped context for platform: 1
    Failed to start video surface due to main thread blocked.

    The latter line is then repeated about once a second.

    To make sure that it is not some of my "amazing" programming skills that messed something up, I then ran the official"QML Video Example application - and it gives me the exact same error.

    I have any available gstreamer plugin installed and all available Qt plugins are installed and available. Does Anybody have any idea what to try to do to get it to work again? My system is Arch Linux running Qt 5.15.1.

    Thanks for any help!


  • I noticed that everything works just fine under X, I only observe that problem when on Wayland. This appears to be a bug then, and I opened a bug report: QTBUG-87970

Log in to reply