Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    [Solved]playing video with Qt’s QtWebKit module

    Qt WebKit
    2
    3
    1115
    Loading More Posts
    • 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
      redstoneleo last edited by

      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 Reply Quote 0
      • A
        AcerExtensa last edited by

        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 Reply Quote 0
        • R
          redstoneleo last edited by

          thanks ,I should learn HTML then

          1 Reply Last reply Reply Quote 0
          • First post
            Last post