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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.5.0, 6.5.1
    • Multimedia
    • None
    • android 9
    • Android

    Description

      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.

      Attachments

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes