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

Windows: Cannot use credentials in URL for QMediaContent

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Out of scope
    • Icon: P4: Low P4: Low
    • None
    • None
    • Multimedia
    • None
    • Tested on Windows 8.1, but probably affects all Windows versions.

      On Mac and on Linux I can use an URL with user/password to play from an URL using QMediaContent in a QMediaPlayer. For example an URL like this:

      https://user:password@domain.com/file.mp3

      On Windows, this does not work, due to restriction in the wmf backend. One would have to create and use an IMFNetCredentialManager to load a file with credentials:

      https://msdn.microsoft.com/en-us/library/windows/desktop/aa473824%28v=vs.85%29.aspx

      I would really like to see support for credentials on Windows. But probably that would mean to change the QMediaPlayer and/or QMediaObject API? Could QAuthenticator be a solution (i.e. adding a property "authenticator" to QMediaPlayer that is used in the backends, if possible)?

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

            valentyn.doroshchuk Valentyn Doroshchuk
            pbouda Peter Bouda
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes