Results 1 to 2 of 2

Thread: QWebView won't play YouTube videos?

  1. #1
    Join Date
    Mar 2011
    Posts
    29
    Thanked 3 Times in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default QWebView won't play YouTube videos?

    I tried both Qt 5.3.1 mingw and PyQt 5.3.1 and couldn't get any videos to play in a QWebView browser? Any ideas why won't QWebView play Youtube html5 videos?

    All examples show that these lines should be sufficient:

    Qt Code:
    1. QWebSettings::globalSettings()->setAttribute(QWebSettings::PluginsEnabled, true);
    2. ui->webView->settings()->setAttribute(QWebSettings::PluginsEnabled, true);
    To copy to clipboard, switch view to plain text mode 

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: QWebView won't play YouTube videos?

    I don't think you need plugins for HTML5's video tag, that would be for using Flash.

    Have you tried with a local video?

    Cheers,
    _

Similar Threads

  1. Replies: 6
    Last Post: 5th February 2014, 13:19
  2. Mediaplayer Youtube videos
    By madrich in forum Qt Programming
    Replies: 0
    Last Post: 6th March 2013, 14:28
  3. play a video from youtube
    By graciano in forum Qt Programming
    Replies: 2
    Last Post: 13th July 2011, 07:17
  4. How to play youtube videos in Symbian device
    By prajnaranjan.das in forum Qt for Embedded and Mobile
    Replies: 2
    Last Post: 2nd February 2011, 12:45

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.