Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QtWebEngine
  4. Video plays with 5.14.2 but not with 5.5.0
Qt 6.11 is out! See what's new in the release blog

Video plays with 5.14.2 but not with 5.5.0

Scheduled Pinned Locked Moved Unsolved QtWebEngine
5 Posts 1 Posters 992 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.
  • LinArcXL Offline
    LinArcXL Offline
    LinArcX
    wrote on last edited by
    #1

    Hi. I created a WebEngine application that plays a video(.ogv) with Qt 5.14.2 and also i compiled qt 5.5.0 separately on windows 7(target > Xp).

    When i compile the application and try to run it, it won't play video. on 5.5.0.

    LinArcXL 1 Reply Last reply
    0
    • LinArcXL LinArcX

      Hi. I created a WebEngine application that plays a video(.ogv) with Qt 5.14.2 and also i compiled qt 5.5.0 separately on windows 7(target > Xp).

      When i compile the application and try to run it, it won't play video. on 5.5.0.

      LinArcXL Offline
      LinArcXL Offline
      LinArcX
      wrote on last edited by
      #2

      @LinArcX I also tested with Qt 5.6.3 and 5.5.0 prebuilt binaries that provided by qt archive website. But they can't play video.

      Note that it doesn't show video on windows 7 either.

      LinArcXL 1 Reply Last reply
      0
      • LinArcXL LinArcX

        @LinArcX I also tested with Qt 5.6.3 and 5.5.0 prebuilt binaries that provided by qt archive website. But they can't play video.

        Note that it doesn't show video on windows 7 either.

        LinArcXL Offline
        LinArcXL Offline
        LinArcX
        wrote on last edited by
        #3

        @LinArcX
        Oh! I realized something.

        If i replace the address in html page wit absolute path it'll work in Qt5.6.3 binary prebuilt.
        But this time i get white page in Qt5.5.0 that i built myself and also Qt5.5.0 binary prebuilt.

        LinArcXL 1 Reply Last reply
        0
        • LinArcXL LinArcX

          @LinArcX
          Oh! I realized something.

          If i replace the address in html page wit absolute path it'll work in Qt5.6.3 binary prebuilt.
          But this time i get white page in Qt5.5.0 that i built myself and also Qt5.5.0 binary prebuilt.

          LinArcXL Offline
          LinArcXL Offline
          LinArcX
          wrote on last edited by
          #4

          @LinArcX
          I found the solution. Just replace relative path with absolute path like this:

          <video width="100%" height="100%" autoplay muted loop>
                          <source src="file://D:/foo.ogv" type="video/ogg">
                          Your browser does not support the video tag.
          </video>
          

          And run the app with --disable-web-security option will shows the video.

          But it's not a perfect solution. Why relative path doesn't work in Qt5.5.0?

          1 Reply Last reply
          0
          • LinArcXL Offline
            LinArcXL Offline
            LinArcX
            wrote on last edited by LinArcX
            #5

            Also another interesting thing.

            If i wana run application that uses Qt5.5.0 and deploy it on windows xp, it'll crash in video page.

            But running it through DependencyWalker is fine!

            Why?

            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