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

Android, iOS: Headers are not sent together with the request in MediaPlayer

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.12.1
    • Multimedia, Network
    • None
    • Android, iOS/tvOS/watchOS

    Description

      When feeding data from an HTTPS stream directly to a QML-instantiated QMediaPlayer
      the media player stays in the playing state while not playing any of the feeded data
      when on Android and iOS. The same code works for both GNU/Linux and SailfishOS.

      Sample application:
      http://github.com/fredldotme/harbour-owncloud/tree/accounts+sync

      C++: https://github.com/fredldotme/harbour-owncloud/blob/f7c86c71c5d37a9477a237781f7f4d6ae74659a4/src/app/src/webdavmediafeeder.cpp
      QML: https://github.com/fredldotme/harbour-owncloud/blob/f7c86c71c5d37a9477a237781f7f4d6ae74659a4/src/app/qml/qqc/pages/browser/FileDetails.qml#L79

      Build config:
      CONFIG+=noadditionals CONFIG+=quickcontrols

      Output:
      -----------------------------------------
      Android:

      D GhostCloud: qml: clicked @ 0
      D GhostCloud: QNetworkRequest getOcsRequest(const QNetworkRequest &, NextcloudSettingsBase *)
      D GhostCloud: headers ("Authorization", "OCS-APIREQUEST")
      D GhostCloud: qml: AV preview
      V MediaHTTPService: MediaHTTPService(android.media.MediaHTTPService@4f879f2): Cookies: null
      D GhostCloud: qml: playback state 1
      V MediaHTTPService: makeHTTPConnection: CookieManager created: java.net.CookieManager@61fd843
      V MediaHTTPService: makeHTTPConnection(android.media.MediaHTTPService@4f879f2): cookieHandler: java.net.CookieManager@61fd843 Cookies: null

      -----------------------------------------
      -----------------------------------------
      GNU/Linux:

      qml: clicked @ 0
      QNetworkRequest getOcsRequest(const QNetworkRequest&, NextcloudSettingsBase*)
      headers ("Authorization", "OCS-APIREQUEST")
      qml: AV preview
      qml: playback state 1
      qml: playback state 0

      -----------------------------------------

      Attachments

        For Gerrit Dashboard: QTBUG-74073
        # Subject Branch Project Status CR V

        Activity

          People

            tpochep Timur Pocheptsov
            dev.beidl Alfred Neumayer
            Veli-Pekka Heinonen Veli-Pekka Heinonen
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes