Forums

OverviewV-Play 2 Support (Qt 5)BackgroundMusic on OSX/iOS › Reply To: BackgroundMusic on OSX/iOS

OverviewV-Play 2 Support (Qt 5)BackgroundMusic on OSX/iOS › Reply To: BackgroundMusic on OSX/iOS
#7923

Christian
V-Play Team

Hi Vlad,

playing audio files from resources is troublesome with Qt 5 at the moment and we have reported this as a critical bug to Digia which will hopefully be fixed with the next Qt release.

At the moment, you can do the following to work around this bug:

1. Do not use the BackgroundMusic element, but instead the SoundEffectVPlay component and convert your music to a wav file. That way you can keep the qrc deployment.

2. Switch to non-qrc deployment (but with assets folders). See the Squaby demo .pro file where this is done because of the same reasons.

Please watch the changelog of the next V-Play updates to get notified when this bug is fixed by Digia and incorporated to V-Play.

Cheers, Chris

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