Important: Please read the Qt Code of Conduct -

Qt5.2 - YouTubeView Demo - Cannot play video

  • I am running YouTubeView demo and the video's will not play. I am able to get the player to come up with the youtube screen but when I press play, the following message comes up "This video is currently unavailable".

    In Debug mode, I am seeing the following error in the console when I try playing "DirectShowPlayerService::doRender: Unresolved error code 80040218"

    Is this expected and if so, is there a fix?

    My system is Windows 7 x64. I am building with MinGW 32 bit.

  • Moderators

    probably you are missing the necessary codecs for the video stream.
    Try installing a codec pack, many are available on the net (like K-Lite, ...)

  • Thanks for your reply raven-rorx. Actually, the demo is supposed to load html5 only videos which should play OOTB without any codecs. It appears to be a bug with the demo app where the iframe based youtube player is not loading html5 videos.

    I will do some debugging to see if I can fix it and try to post the fix if I can figure it out.

  • I have been digging deeper and the issue is across the board with video support. I'll raise a separate and more specific thread.


    • Error message is "DirectShowPlayerService::doRender: Unresolved error code 80040266"
    • Build Environment: QT 5.2.0 / Windows 7 / MinGW 32bit
    • This same error code occurs in the following demo apps: YouTube View, Media Player, Browser (, browser on youtube html5 videos, browser on local files of type webm, mp4, ogv, 3gp

  • Just to update on this thread, According to the response on the new "thread I created":, this issue appears to be related to MinGW and the fact that the Video Codecs are not included out of the box.

    It looks like you were right on the money raven-worx :)

Log in to reply