Learn what Felgo offers to help your business succeed. Start your free evaluation today! Felgo for Your Business

Forums

OverviewFelgo 3 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 9 years, 3 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.

Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded