Find the Best Demos and Examples

Check out this quick tour to find the best demos and examples for you, and to see how the Felgo SDK can help you to develop your next app or game!

Forums

OverviewFelgo 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 5 years, 9 months ago by  senadb.
    #8656

    Alex
    Felgo 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.