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

[REG 6.6.1-6.6.2] [windows] QML MediaPlayer unable to play a video when 'audioOutput' is not specified

XMLWordPrintable

    • Windows
    • b59bf3fd5 (dev), 961961da7 (6.7), f9e44002c (6.6), d19eb45bf (tqtc/lts-6.5)

      On 'windows' multimedia backend, QML MediaPlayer unable to play a video when 'audioOutput' is not specified. Regression for Qt 6.6.2, no such problem with Qt 6.6.1 and earlier.

      Sample code:

      import QtQuick
      import QtMultimedia
      
      Window {
          width: 640
          height: 480
          visible: true
      
          VideoOutput {
              id: videoOut
              anchors.fill: parent
          }
      
          MediaPlayer {
              id: player
              videoOutput: videoOut
              //audioOutput: AudioOutput {} // uncommenting this fixes the problem
      
              source: "https://download.blender.org/peach/bigbuckbunny_movies/BigBuckBunny_320x180.mp4"
      
              //autoPlay: true
              onMediaStatusChanged: {
                  switch (mediaStatus) {
                  case MediaPlayer.LoadedMedia:
                      play()
                      break
                  }
              }
          }
      }
      

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

            laknoll Lars Knoll
            studiosus Vladimir Belyavsky
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes