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. QWebKit, Qt 5.0.2, videos.
Forum Updated to NodeBB v4.3 + New Features

QWebKit, Qt 5.0.2, videos.

Scheduled Pinned Locked Moved Qt WebKit
9 Posts 3 Posters 4.7k 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.
  • D Offline
    D Offline
    D.Lowl
    wrote on last edited by
    #1

    I have no idea how to include any video into pages that are shown by QWebView. Neither HTML5-video tag (with any codec) nor Flash-player doesn't work. I've read that it can't play HTML5 video (I've found also kind of a patch, but it doesn't want to compile anyway). But what is wrong with Flash? I try to play it with the following code.
    @QString _client = "http://www.chemgapedia.de/vsengine/info/en/help/requirements/flash.html";
    ui->_client->settings()->setAttribute(QWebSettings::PluginsEnabled, true);
    ui->_client->settings()->setAttribute(QWebSettings::DeveloperExtrasEnabled, true);
    ui->_client->setUrl(QUrl(_client));@
    Who can help? Most likely if there is some way to make HTML5-video work.

    1 Reply Last reply
    0
    • B Offline
      B Offline
      bjanuario
      wrote on last edited by
      #2

      Maybe your flash.html have problems.
      Please check this example:
      @import sys
      from PySide import QtGui, QtWebKit
      TESTURL = "http://camendesign.com/code/video_for_everybody/test.html"
      app = QtGui.QApplication(sys.argv)
      QtWebKit.QWebSettings.globalSettings().setAttribute(
      QtWebKit.QWebSettings.PluginsEnabled, True)
      view = QtWebKit.QWebView()
      url = sys.argv[1] if len(sys.argv) > 1 else TESTURL
      view.load(url)
      view.show()
      app.exec_()@

      You can find more about this here:
      "http://blog.enthought.com/open-source/fun-with-qtwebkit-html5-video/":http://blog.enthought.com/open-source/fun-with-qtwebkit-html5-video/

      1 Reply Last reply
      0
      • D Offline
        D Offline
        D.Lowl
        wrote on last edited by
        #3

        bq. http://blog.enthought.com/open-source/fun-with-qtwebkit-html5-video/ [blog.enthought.com]

        Is this tutorial for qt5? I thought it's for previous versions, 'cause qt-mobility doesn't want to be compiled (it wants QtMultimediaKit, which is part of previous ones).

        And can you provide the following code for c++/Qt, not for python.

        1 Reply Last reply
        0
        • B Offline
          B Offline
          bjanuario
          wrote on last edited by
          #4

          Can you check this link:
          "http://qt-project.org/videos/watch/html5-in-qtwebkit":http://qt-project.org/videos/watch/html5-in-qtwebkit

          Tell me if helps, otherwise I can assist you to show a html5 file with video working

          1 Reply Last reply
          0
          • D Offline
            D Offline
            D.Lowl
            wrote on last edited by
            #5

            Hm... I've watched it. Yes, he shows that he use some videos on HTML5. But I didn't understand if it is under QtWebKit. Anyway, there is no any explanation how to do such in things in this video.

            1 Reply Last reply
            0
            • B Offline
              B Offline
              bjanuario
              wrote on last edited by
              #6

              Yes it's inside QtWebKit.

              1 Reply Last reply
              0
              • D Offline
                D Offline
                D.Lowl
                wrote on last edited by
                #7

                Then why it works on his presentation and doesn't work on mine?

                1 Reply Last reply
                0
                • D Offline
                  D Offline
                  D.Lowl
                  wrote on last edited by
                  #8

                  Or then.... In other words. What steps should I do to insert working HTML5-video and(!) Flash-video. (I need both but I have nothing actually). What steps? I thought it must work out of box.

                  1 Reply Last reply
                  0
                  • A Offline
                    A Offline
                    anubhav87
                    wrote on last edited by
                    #9

                    i have written the QWebview application used to display the video when i run it in the development system it works fine but when i move it to different CLEAN system it only plays audio but it dont show the video,
                    QWeview is loading the url from the server which consist the html video tag through which i am loading the video

                    Thanks

                    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