Details
-
Bug
-
Resolution: Done
-
P2: Important
-
6.2.2
-
None
-
Macbook Pro (M1, 2020) running macOS 12.1
-
-
dee6b39639 (qt/qtmultimedia/dev) f4cb911140 (qt/qtmultimedia/6.2) 60e5b9329d (qt/qtmultimedia/6.3) f4cb911140 (qt/tqtc-qtmultimedia/6.2)
Description
The following code gets the audioOutputs from MediaDevices and lists the description and isDefault. In all cases, isDefault is false.
import QtQuick import QtMultimedia Window { width: 640 height: 480 visible: true title: qsTr("QtMultimedia audio outputs") Component.onCompleted: { for (const device of devices.audioOutputs) console.log("Device " + device.description + "; default: " + device.isDefault) } MediaDevices { id: devices } }
On my Mac, the output is
qml: Device MacBook Pro Speakers; default: false qml: Device BlackHole 2ch; default: false
even though devices.defaultAudioOutput returns the first item in the list.