Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Qt6.11.1: Qt Multimedia not working on iOS device
Qt 6.11 is out! See what's new in the release blog

Qt6.11.1: Qt Multimedia not working on iOS device

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
4 Posts 2 Posters 102 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Quang PhuQ Offline
    Quang PhuQ Offline
    Quang Phu
    wrote last edited by Quang Phu
    #1

    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 play

    MediaPlayer {
            autoPlay: true
            loops: MediaPlayer.Infinite
            source: Audios.backgroundMusic
            audioOutput: AudioOutput {
                volume: moduleController.infoController.musicVolume / 100
            }
        }
    
    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote last edited by
      #2

      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 ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      Quang PhuQ 1 Reply Last reply
      0
      • SGaistS SGaist

        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 ?

        Quang PhuQ Offline
        Quang PhuQ Offline
        Quang Phu
        wrote last edited by
        #3

        @SGaist hi

        "Are you already following the iOS platform specifics ?" Yes, I put setting

        CONFIG += add_ios_ffmpeg_libraries
        

        Because 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 above

        qt.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/s
        

        This 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.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote last edited by
          #4

          Then try with the full logging enabled.
          There will be a flood but you might find something in there.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved