Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-127320

QMediaPlayer unable to open files with absolute paths without scheme

    XMLWordPrintable

Details

    • Windows
    • 101ffd194 (dev), 1528a753e (6.8), 8f69c6e58 (dev), 34185b779 (6.8), d5ef39d79 (6.7), 84056f53b (tqtc/lts-6.5)
    • Multimedia wk 29-30, Multimedia wk 31-32

    Description

      QMediaPlayer unable to open files that are set as a source with a QUrl that contains absolute path to the file and does not contain any scheme (e.g. file://).

      The problem is only relevant for Windows since its absolute paths start with a drive letter (e.g. C:\Media\Video.mp4) and this letter is considered a scheme by the QUrl class. This fails an internal check that ensures files without a scheme should be considered as the ones having file:// scheme.

      Current workaround is to use QUrl::fromLocalFile which adds required scheme to the path.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              padubsky Pavel Dubsky
              padubsky Pavel Dubsky
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews