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

[REG] Unable to mute sound before playing a video

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Done
    • Affects Version/s: 6.2.0 Beta2
    • Fix Version/s: 6.2.0 Beta3, 6.3.0 Alpha
    • Component/s: Multimedia
    • Labels:
      None
    • Environment:
      Windows 10, MSVC 2019
    • Platform/s:
      Windows
    • Commits:
      efaa84875c56140230a1cac2bd4844fce85202e0 (qt/qtmultimedia/dev) fdb558e35633c184ff9410c859c0576d7ec0907d (qt/qtmultimedia/6.2)

      Description

      Unable to mute sound initially before playing a video.

      audioOutput: AudioOutput { muted: true } // << muted has no effect, sound is still heard
      

      Regression from Qt 5.15.2.
      It was possible there to mute
      sound initially be setting MediaPlayer's muted property to true.

      Full example:

      import QtQuick
      import QtQuick.Window
      import QtMultimedia
      
      Window {
          width: 640
          height: 480
          visible: true
      
          VideoOutput {
              id: output
              anchors.fill: parent
      
              MediaPlayer {
                  videoOutput: output
                  audioOutput: AudioOutput { muted: true } // << muted has no effect, sound is still heard
      
                  // you can use any local or web media source with sound instead
                  source: "https://www.learningcontainer.com/wp-content/uploads/2020/05/sample-mp4-file.mp4"
                  Component.onCompleted: play()
              }
          }
      }
      

        Attachments

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

          Activity

            People

            Assignee:
            anrocha André De La Rocha
            Reporter:
            studiosus Vladimir Belyavsky
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes