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. [Solved]playing video with Qt’s QtWebKit module
QtWS25 Last Chance

[Solved]playing video with Qt’s QtWebKit module

Scheduled Pinned Locked Moved Qt WebKit
3 Posts 2 Posters 1.3k Views
  • 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.
  • R Offline
    R Offline
    redstoneleo
    wrote on last edited by
    #1

    playing video with Qt’s QtWebKit module

    if you're using Google Chrome ,When you open the following link
    https://d2pq0u4uni88oo.cloudfront.net/projects/79786/video-87361-h264_high.mp4
    you'll see a video player ,then if you "inspect element" and you will See the html5 video tag there

    I wonder if we could accomplish the same functionality with Qt’s QtWebKit module
    can anyone give a code sample with the above link ?

    1 Reply Last reply
    0
    • A Offline
      A Offline
      AcerExtensa
      wrote on last edited by
      #2

      The link you have posted is direct link to mp4 file and not any kind of html website...
      In QtWebKit you can catch this link click/request in following slots:
      "void linkClicked(const Qurl &);":http://qt-project.org/doc/qt-5.0/qtwebkit/qwebview.html#linkClicked
      "void downloadRequested(const QNetworkRequest & request)":http://qt-project.org/doc/qt-5.0/qtwebkit/qwebpage.html#downloadRequested
      "void unsupportedContent(QNetworkReply * reply)":http://qt-project.org/doc/qt-5.0/qtwebkit/qwebpage.html#unsupportedContent

      Check the right one for your requests. When you catch the request you can simple copy the link, create new instance of webview(or use existing one), create simple HTML code with catched link and load this code in your webview....

      God is Real unless explicitly declared as Integer.

      1 Reply Last reply
      0
      • R Offline
        R Offline
        redstoneleo
        wrote on last edited by
        #3

        thanks ,I should learn HTML then

        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