Search Unity

  1. Want to see 2020.1b in action? Sign up for our Beta 2020.1 Overview Webinar on April 20th for a live presentation from our evangelists and a Q&A session with guests from R&D.
    Dismiss Notice
  2. Interested in giving us feedback? Join our online research interviews on a broad range of topics and share your insights with us.
    Dismiss Notice
  3. We're hosting a webinar for the new Input System where you'll be able to get in touch with the devs. Sign up now and share your questions with us in preparation for the session on April 15.
    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:
    4
    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:
    77
    Sadly, this behavior is mandated by the browsers themselves.
     
    DavidHutch likes this.
  3. yossi_horowitz_artie

    yossi_horowitz_artie

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

    DavidHutch

    Joined:
    Feb 25, 2019
    Posts:
    4
    yossi_horowitz_artie likes this.
unityunity