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

MediaPlayer does not support live streams on http(s)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.5.3
    • Multimedia
    • Android , Windows Mingw64
    • All

    Description

      // Copyright (C) 2021 The Qt Company Ltd.
      // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only

      import QtQuick 6.2
      import VideoPlayer
      import QtMultimedia

      Window {
          width: mainScreen.width
          height: mainScreen.height

          visible: true
          title: "VideoPlayer"

          Screen01

      {         id: mainScreen         anchors.fill: parent     }

          MediaPlayer {

              id: mediaplayer
              source: "http://42.176.185.28:9901/tsfile/live/1022_1.m3u8"
              audioOutput: AudioOutput {}
              videoOutput: mainScreen.videoOutput
              Component.onCompleted:

      {            // mediaplayer.play();             console.log("status ", mediaplayer.playing);              mediaplayer.play();         }

          }

          Connections{

              target:mediaplayer
              function onErrorOccurred(err,errstring)

      {             console.log("err ",err," ",errstring);             console.log("audio:", mediaplayer.hasAudio,                         " video:",mediaplayer.hasVideo);             console.log("dura:",mediaplayer.duration);         }

          }

          MouseArea

      {             anchors.fill: parent         }

       

      }

       

       

       

      error log:

      qt.multimedia.ffmpeg.mediadataholder: AVStream duration -9223372036854775808 is invalid. Taking it from the metadata
      qt.multimedia.ffmpeg.mediadataholder: AVStream duration -9223372036854775808 is invalid. Taking it from the metadata
      Cannot set loops for non-seekable source

      qml: err  -1   Operation not permitted

       

      Attachments

        Activity

          People

            bartlomiejmoskal Bartlomiej Moskal
            kyle0xy x za
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: