Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.7.2
-
None
-
-
2eba482a0 (dev), 8418c8bdb (dev), 18f51a8ab (dev), ddfe4fc46 (6.8), 5b5371cba (6.8), de33bb4dd (6.8)
-
2024wk42s3FOQtforAndroid
Description
The program Examples/Qt-6.7.2/demos/mediaplayer on an Android 14 tablet with a connected bluetooth 5.0 speaker and set as default audio output does not immediately play the sound on the speaker, but first on the built-in speakers and then after several seconds on the Bluetooth speaker. It seems that when starting the program there is no AudioInput devices by default.
1- open a sample mp4 file on the Android device with bluetooth speaker connected : the sound is directly on bluetooth speaker
2- launch demos/mediaplayer on the same device and load the same mp4 video file : the movie is correctly played but the song is thirst played on built in speaker and after a few seconds on bluetooth speaker
in another program by putting this code in the constructor of my class
const QList<QAudioDevice> audioDevices = QMediaDevices::audioOutputs();
for (const QAudioDevice &device : audioDevices)
i see this debug
AudioDevice output ID: "2"
Description: "Built in speaker (SM-T220)"
Is default: No
AudioDevice output ID: "352"
Description: "Bluetooth (Music Care)"
Is default: No
In my qml file :
MediaPlayer {
id: bellSound
source: "sounds/bell.mp3"
audioOutput: AudioOutput
}
when bellSound.play() first the sound is out from the Built-In speacker and after a few second to the Bluetooth speaker
gradle.properties :
androidBuildToolsVersion=34.0.0
androidCompileSdkVersion=android-34
androidNdkVersion=26.1.10909125
buildDir=build
qt5AndroidDir=~/Qt/6.7.2/android_arm64_v8a/./src/android/java
qtAndroidDir=~/Qt/6.7.2/android_arm64_v8a/./src/android/java
qtMinSdkVersion=23
qtTargetAbiList=arm64-v8a
qtTargetSdkVersion=34
Attachments
Issue Links
- duplicates
-
QTBUG-126567 Android 14 QMediaPlayer plays sound using speakers instead of headphones
- Closed
For Gerrit Dashboard: QTBUG-128738 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
597744,9 | Android: Set default audio device | dev | qt/qtmultimedia | Status: MERGED | +2 | 0 |
597745,12 | Android: Update for setting Audio Output device | dev | qt/qtmultimedia | Status: MERGED | +2 | 0 |
597746,12 | Android: Increase BufferCount in AudioSink | dev | qt/qtmultimedia | Status: MERGED | +2 | 0 |
599298,2 | Android: Set default audio device | 6.8 | qt/qtmultimedia | Status: MERGED | +2 | 0 |
599299,2 | Android: Update for setting Audio Output device | 6.8 | qt/qtmultimedia | Status: MERGED | +2 | 0 |
599300,2 | Android: Increase BufferCount in AudioSink | 6.8 | qt/qtmultimedia | Status: MERGED | +2 | 0 |