Forums

OverviewV-Play 2 Support (Qt 5) › Background Music playing while game is in background

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

    Senad

    Hi,

    Pressing the “Home” button on Android device puts the game in the “Paused” state, however, the background music of the game keeps playing..

    This can be somewhat annoying especially if a phone call comes trough..

    Is there any way around this? I know Android has onPaused() method but I don’t see how this would be connected to Qt..

     

    Thanks,

    Senad

    • This topic was modified 3 years, 10 months ago.
    #8656

    Alex
    V-Play Team

    Hi Senad,

    are you using the BackgroundMusic component or a standard Qt Audio component?

    Cheers,
    Alex

    #8669

    Senad

    Hi Alex,

     

    I have used Qt Audio component because BackgroundMusic is not playing the mp3 file when testing on Desktop.

    However, i just noticed that it does play on the android device..  Is this a bug because documentation states that Windows should play mp3 in the BackgroundMusic component..

     

    Thanks,

     

     

     

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