Qt6.11.1: Qt Multimedia not working on iOS device
-
Hello
I have just built my project with Qt6.11.1
Build successfully but when I deploy app on iPhone 15, audio is no sound, no error show.
With same code I build with Qt 6.7.3 then deploy and audio work well.
Anyone met this issue before and how to fix it?
Below is same code for audio playMediaPlayer { autoPlay: true loops: MediaPlayer.Infinite source: Audios.backgroundMusic audioOutput: AudioOutput { volume: moduleController.infoController.musicVolume / 100 } } -
Hi,
Are you getting error messages ?
One thing you can is start your application with the QT_DEBUG_PLUGINS environment variable set to 1. This should give information on the plugins loaded and check whether the multimedia backend fails somehow.Are you already following the iOS platform specifics ?
-
Hi,
Are you getting error messages ?
One thing you can is start your application with the QT_DEBUG_PLUGINS environment variable set to 1. This should give information on the plugins loaded and check whether the multimedia backend fails somehow.Are you already following the iOS platform specifics ?
@SGaist hi
"Are you already following the iOS platform specifics ?" Yes, I put setting
CONFIG += add_ios_ffmpeg_librariesBecause if without setting above, compile will got error about ffmpeg
"QT_DEBUG_PLUGINS environment variable set to 1", I tried put it, but there is no error relate to Multimedia
This is all logs about the code I post aboveqt.multimedia.ffmpeg: Using Qt multimedia with FFmpeg version 7.1.3 LGPL version 2.1 or later [mp3 @ 0x11291c280] Estimating duration from bitrate, this may be inaccurate Input #0, mp3, from '/private/var/mobile/Containers/Data/Application/058418D5-21C8-4A99-8753-8CDDDE49245C/tmp/english.ZZbUOf.mp3': Metadata: TBPM : 127 encoded_by : LAME in FL Studio 11 date : 2018 Duration: 00:03:39.89, start: 0.000000, bitrate: 32 kb/s Stream #0:0: Audio: mp3 (mp3float), 16000 Hz, stereo, fltp, 32 kb/sThis issue I met from Qt v6.8.x (now v6.11.1 still exists), then each time I want to build production for iOS I must use v6.7.3.
-
Then try with the full logging enabled.
There will be a flood but you might find something in there.