Forums

OverviewFelgo 2 Support (Qt 5) › ios release and packaging music/sound files

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #19166

    Marcin

    Hi Felgo,
    I come across issue with releasing app on ios with music files.
    The note from documentation for BackgroundMusic:

    Note: The Qt 5 Audio element currently (as of Qt release 5.3.0) can not play sound files from qrc on iOS, 
    Mac and some Android devices. However, bundling your assets into a qrc file is the suggested deployment option, 
    because you can then compile your assets into the binary and they are protected. Due to this Qt issue, 
    we recommend using SoundEffectVPlay for your background sounds, or deploy your audio assets with the DEPLOYMENTFOLDERS option in your pro file instead of bundling them with qrc. 
    If you need help with this topic, please use our support forums. 

    Like in documentation, with normal resource(qrc) approach I can’t play any sound files.
    I not only have problem with BackgroundMusic, but also with SoundEffectVPlay.
    What options do I really have.
    1.
    Can it be my mistake, and not the issue mentioned in documentation?
    2.
    Can I combine binary resource option with deployment files?
    For example, add everything to qrc, and music files at the end of pro file in DISTFILES sections?
    3.
    How do you release your apps on ios, if it includes sound files?
    Both sound effects and music.

    #19168

    Alex
    Felgo Team

    Hi Marcin,

    you can mix resources and deploymentfolders. The classic approach, also as described in our deployment guide and in the pro file, would be using resources for your code files, and deploymentfolders for your assets with the DEPLOYMENTFOLDERS variable. This is also how we do it with out own apps.

    The DISTFILES variable is some unix specific addition with the latest Qt Creator versions, you can ignore it.

    Cheers,
    Alex

    #19174

    Marcin

    Hi Alex,
    Thank you, will check that solution.

Viewing 3 posts - 1 through 3 (of 3 total)

RSS feed for this thread

You must be logged in to reply to this topic.

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
FREE!
create apps
create games
cross platform
native performance
3rd party services
game network
multiplayer
level editor
easiest to learn
biggest time saving
best support