Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

No Audio will play until input (AudioSourceStart)

Discussion in 'Project Tiny' started by DavidHutch, Nov 22, 2019.

  1. DavidHutch

    DavidHutch

    Joined:
    Feb 25, 2019
    Posts:
    5
    I am using Project Tiny preview 0.15.3. I have tried having both a AudioSource and a AudioSourceStart component in my boot scene and also loading an AudioSource and adding the AudioSourceStart components through script. Neither will begin playing in Chrome/Safari until I press a key, or touch/mouse input on the browser window. After that everything functions as you'd expect (audio can be played/stopped).
    This behavior also occurs in the provided Unity samples.
    Does anyone know of a workaround for this? Is it intentional? I would like background music to being as soon as the project is launched.

    Thanks for any assistance
     
  2. yossi_horowitz_artie

    yossi_horowitz_artie

    Joined:
    Jan 30, 2019
    Posts:
    87
    Sadly, this behavior is mandated by the browsers themselves.
     
    DavidHutch likes this.
  3. yossi_horowitz_artie

    yossi_horowitz_artie

    Joined:
    Jan 30, 2019
    Posts:
    87
  4. DavidHutch

    DavidHutch

    Joined:
    Feb 25, 2019
    Posts:
    5
    yossi_horowitz_artie likes this.