How do I turn off music when an app is minimized?

0 favourites
  • 14 posts
From the Asset Store
Create your own casino app and import it to Google Play and the App Store.
  • I've built a program in Construct 2, exported to HTML 5, with Intel XDK built an android version. So while playing the game(BG music is playing), when I switch to a different app on my mobile, the music is still playing. (In properties the play in background option is set to "No"). What could be causing this?

  • There is a setting in the project properties "Pause on unfocus".

    You should try to turn that on if it isn't.

  • There is a setting in the project properties "Pause on unfocus".

    You should try to turn that on if it isn't.

    Thank you for your reply. No that didn't work. I noticed when i ran Debug Layout and switched tabs(Using Chrome) .

    My music in "Currently playing" disappeared. Is that normal?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Does this work?

    First add the browser object..

    browser on suspended - stop music

  • Does this work?

    First add the browser object..

    browser on suspended - stop music

    Thank you, this worked on browser, is there anything similar to stop music when switching to another app while my "game" is running? (I'm using Android 5.0)

  • > Does this work?

    > First add the browser object..

    >

    > browser on suspended - stop music

    >

    Thank you, this worked on browser, is there anything similar to stop music when switching to another app while my "game" is running? (I'm using Android 5.0)

    I thought the browser-object worked on Android as well, hmmmm...

  • >

    > > Does this work?

    > > First add the browser object..

    > >

    > > browser on suspended - stop music

    > >

    >

    > Thank you, this worked on browser, is there anything similar to stop music when switching to another app while my "game" is running? (I'm using Android 5.0)

    >

    I thought the browser-object worked on Android as well, hmmmm...

    Could the problem be, that the app isn't uploaded?

  • Anyone?

  • On suspended --> Audio; Pause tag "NameTag"

    Rememeber to use a Tag for your music (Audio -> Play -> AudioFile, Loop, Volume, TAG)

  • On suspended --> Audio; Pause tag "NameTag"

    Rememeber to use a Tag for your music (Audio -> Play -> AudioFile, Loop, Volume, TAG)

    I tried that, when LittleStain suggested that. Still no progress... And how do i check if the user is already playing any music or something so that his and mine don't play at the same time?

  • Is it because i'm using a free licence and exporting to Cordova Android?

  • Ok, found a solution myself.

  • Ok, found a solution myself.

    Mine sharing your solution?

  • > Ok, found a solution myself.

    >

    Mine sharing your solution?

    In the Intel XDK build page used "Crosswalk for Android" instead of just "Android".

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)