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

iOS Audio QML sound is muted by hardware mute switch

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P3: Somewhat important
    • None
    • 5.12.4
    • Multimedia
    • None
    • iOS/tvOS/watchOS

    Description

      When I run the following code on iOS

      import QtQuick 2.12
      import QtQuick.Window 2.12
      import QtMultimedia 5.8
      
      Window {
          visible: true
          width: 640
          height: 480
          title: qsTr("Hello World")
      
          Audio {
              id: audio
              loops: Audio.Infinite
              onStatusChanged:        console.log("status = " + status)
              onError:                console.log("error = " + error + " " + errorString)
              onPlaybackStateChanged: console.log("playbackstate = " + playbackState)
              source: "qrc:/sounds/audio.mp3"
              volume: 1.0
          }
          Component.onCompleted: audio.play()
      }
      

      the audio plays fine but it can be muted by the (hardware) mute switch on an iPhone.  However, other apps (iTunes, news apps, podcasts, ...) continue to play audio in this case.

      Is this a bug? Or can I somehow configure (in the Info.plist?) that the app-audio should not be muted by the hardware mute switch?

      Attachments

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

        Activity

          People

            valentyn.doroshchuk Valentyn Doroshchuk
            vdaele vdaele
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes