Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt WebKit
  4. Using Qt 5.2.1, what do I need to do to support HTML5 video on mac and windows?
Forum Updated to NodeBB v4.3 + New Features

Using Qt 5.2.1, what do I need to do to support HTML5 video on mac and windows?

Scheduled Pinned Locked Moved Qt WebKit
2 Posts 2 Posters 1.2k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sethcall
    wrote on last edited by
    #1

    Specifically, I'm trying to get HTML5 video to load from youtube, using their embed code:

    <iframe width="640" height="360" src="//www.youtube.com/embed/l5ODwR6FPRQ?feature=player_detailpage" frameborder="0" allowfullscreen></iframe>

    I'm using the pre-build libraries available from Qt Downloads.

    Are there specific QWebSettings that must be enabled? Do I have to bundle codecs, or ask the user to install something?

    Here's what I see when I tried:

    Mac 10.9.2

    • A black window flashes, and once (I think) the video is loaded and the thumbnail is ready to be shown, the iframe and contents entirely disappears. It's still in the dom, but invisible. The background-color of the element holding the iframe is what's shown... that's it.
    • If I click in the middle of the invisible iframe element, the video will play correctly (it comes bac,k and is visible). It does not disappear again. I have used developer tools to try and figure out what may be wrong, but nothing is obvious.

    Windows 8:

    • The video loads up, and the thumbnail displays (unlike on mac 10.9.2). But when I click play, I get 'This video is currently unavailable'. I think this is because I don't have the webm codec?

    Any help is greatly appreciated. I have scoured everything I can, but I just see a mismash of suggestions and alot of remarks of 'this isn't possible'. I can't figure out that state of this in QT...

    1 Reply Last reply
    0
    • EddyE Offline
      EddyE Offline
      Eddy
      wrote on last edited by
      #2

      "Have a look at this wiki":http://qt-project.org/wiki/Embed_YouTube_Video_in_QWebView

      Hope it helps

      Qt Certified Specialist
      www.edalsolutions.be

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved