Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only.

    Please, do not make any changes to your username or email addresses at id.unity.com during this transition time.

    It's still possible to reply to existing private message conversations during the migration, but any new replies you post will be missing after the main migration is complete. We'll do our best to migrate these messages in a follow-up step.

    On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live.


    Read our full announcement for more information and let us know if you have any questions.

Audio How to disable Audio Focus on Android?

Discussion in '5.4 Beta' started by daspiela, Jun 9, 2016.

  1. daspiela

    daspiela

    Joined:
    Mar 5, 2015
    Posts:
    15
    Is it possible to deactivate audio focus on startup?
    Since Unity 5.4, the background music stops on startup and i couldn't find a way to deactivate audio focus.
     
    MrEsquire likes this.
  2. BRiSA

    BRiSA

    Joined:
    Mar 16, 2015
    Posts:
    4
    I would love to know the answer. My players are complaining!
     
  3. bitter

    bitter

    Unity Technologies

    Joined:
    Jan 11, 2012
    Posts:
    530
    It's currently not possible but it sounds like a reasonable feature for games that doesn't have background music. Would a player setting in the editor suffice or would you need a runtime API where you could toggle this on and off?
     
  4. daspiela

    daspiela

    Joined:
    Mar 5, 2015
    Posts:
    15
    Player setting would be perfect for my apps. This sounds like the best way to prevent native music players being paused on startup.
     
  5. robson_depaula

    robson_depaula

    Joined:
    Sep 30, 2014
    Posts:
    37
    I would vote up to this request. Disabling audio focus internal control would be great for my app as well.
     
  6. BRiSA

    BRiSA

    Joined:
    Mar 16, 2015
    Posts:
    4
    I would love to see this setting. My players are complaining and I hate to reply there is nothing I can do.
     
  7. paradizIsCool

    paradizIsCool

    Joined:
    Jul 10, 2014
    Posts:
    178
    Hi, we also have users complaining about the loss of the audio focus, especially since 5.3.6 which always get audio focus and we don't want to, especially since this fix
    • (796242) - Android: Audio - Fixed an issue where the application would not regain audio focus after a notification.