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

Qt6.5.1 QMediaPlayer can't not play http video stream on android

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2: Important P2: Important
    • 6.7.2
    • 6.5.0, 6.5.1
    • Multimedia
    • None
    • android 9
    • Android
    • 2024wk26s2FOQtforAndroid

      in android 9 platform

       

      bug 1:

         mPlayer = new QMediaPlayer;
          mAudioOutput = new QAudioOutput;
          mPlayer->setAudioOutput(mAudioOutput);

          mVideoWidget = new QVideoWidget;
          mVideoWidget->setAspectRatioMode(Qt::IgnoreAspectRatio);
          mPlayer->setVideoOutput(mVideoWidget);

      mPlayer->setSource(QUrl("http://127.0.0.1/1.mpg));
      mPlayer->play();

       

      theare are a error:

      player error: QMediaPlayer::ResourceError  =>  "Error: (Unknown error/Insufficient resources)"

       

      bug2:

      when use iodevice for QMediaPlayer, it not use it , just used qurl file

      mPlayer->setSourceDevice(mFile, QUrl(filePath));

      mPlayer->play();

       

      the mFile can't never use.

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

            bartlomiejmoskal Bartlomiej Moskal
            paulfan F jb
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes