Qt World Summit: Submit your Presentation

Qt5.0.0 HTML5 Video

  • Hi,
    I'm developing a QtWebkit based application that will run on both OS X and
    Windows operating systems.
    I recently ported the project to Qt5.0.0 mostly for its better support of HTML5 video.

    bq. Qt WebKit is a web content rendering engine based on the open source WebKit project featuring broad support for standard web technologies. The Qt WebKit module provides integration with both Qt Quick and traditional widgets. The module brings the latest in HTML5 advancements to Qt 5, including CSS filters and animations and Video, Canvas and WebGL, Canvas support and HTML video.

    I tested the new build using:

    The build for OS X worked great as the application was able to play the Big Buck Bunny video in the second url, however, in Windows 7 MSVC2010, it was unable to load the HTML video, although, when I click the direct link to the MP4 file, a buch of VLC plugins get loaded from 'C:\Program Files (x86)\VideoLAN\VLC\plugins' and the video plays on the application's window.

    This is part of my .pro file:

    @QT += webkit webkitwidgets
    QT += core
    QT += gui
    QT += network
    QT += sql
    QT += script
    QT += widgets
    QT += multimedia multimediawidgets@

    Note that I'm not including any QtMultimedia classes directly.

    Are there any additional steps required to have HTML video working under Windows with Qt5.0.0?

    Thank you for your help.


  • HTML 5 video tag is currently not supported in windows. I was able to play it HTML 5 video by converting it to object tag. Check for video.js which is under git project. It a third party library which u can use for run time convertion of video tag to objec tag and play you video using flash plug-in.Hope next version of qt support the html5 playback in windows.

Log in to reply