Search Unity

Video WebGL Safari videos will not play

Discussion in 'Audio & Video' started by stephen-donohue, Feb 25, 2019.

  1. stephen-donohue

    stephen-donohue

    Joined:
    Nov 17, 2015
    Posts:
    1
    I am trying to use the video player for a WebGL project. Videos will play fine on Chrome and Firefox, but on Safari I receive the following error.

    Code (JavaScript):
    1. Unhandled Promise Rejection: NotAllowedError: The request is not allowed by the user agent or the platform in the current context, possibly because the user denied permission.
    The videos are not set to auto-play, user must press a play button.

    If a user changes their auto-play option for the page to not "Stop media with sound" the video will play, however asking our users to change their settings is not an option, and regardless the media is not auto-playing.

    Our workaround in the past has been to split the audio into a separate mp3 file that we also load and sync to the video, but this is not an ideal solution.

    Is there a simpler workaround to get videos working properly in Safari?
     
    matheus_inmotionvr, ROBYER1 and yty like this.
  2. AlexHJohnstone

    AlexHJohnstone

    Joined:
    Oct 30, 2013
    Posts:
    1
    Did you ever find a solution to this? Seems still unfixed as of 2019.1.10. I'm going to submit a bug report if there's no work-around.
     
  3. Knusper

    Knusper

    Joined:
    Jun 5, 2014
    Posts:
    35
    I'm having troubles with Unity Video Player for years now... this system is really a problem to our app. We have a similar problem. Unity doesn't even give any information about that issue.
     
  4. Jelmer123

    Jelmer123

    Joined:
    Feb 11, 2019
    Posts:
    243
    Any updates/fixes here?
     
  5. ykswobel

    ykswobel

    Joined:
    Apr 5, 2018
    Posts:
    57
    apparently not
     
  6. Scrapemist

    Scrapemist

    Joined:
    May 16, 2015
    Posts:
    16
  7. unity_aAWUp6wVMMsV-w

    unity_aAWUp6wVMMsV-w

    Joined:
    May 4, 2020
    Posts:
    2
    I still got problem to load url for video in videoplayer unity in safari and ios chrome.
     
  8. kartoonist435

    kartoonist435

    Joined:
    Feb 14, 2015
    Posts:
    73
    Having the same issue, have tried everything I can think of though mine works in every browser except Safari.
     
  9. GilCat

    GilCat

    Joined:
    Sep 21, 2013
    Posts:
    676
    I was able to make it work in Safari. Have a look at my response here
     
  10. justinduy

    justinduy

    Joined:
    Dec 26, 2016
    Posts:
    7
    it didn't :(
     
  11. Marks4

    Marks4

    Joined:
    Feb 25, 2018
    Posts:
    548
  12. Noelle92

    Noelle92

    Joined:
    Apr 8, 2021
    Posts:
    1
    Hello, I am also wondering if you have found an easier workaround to make videos work properly in Safari?
     
  13. matheus_inmotionvr

    matheus_inmotionvr

    Joined:
    Oct 3, 2018
    Posts:
    63
    Any news on this? Anyone? Hello?
     
  14. Ikaro88

    Ikaro88

    Joined:
    Jun 6, 2016
    Posts:
    300
  15. Marks4

    Marks4

    Joined:
    Feb 25, 2018
    Posts:
    548
    @Ikaro88 No, but I guarantee it works. Please see the vid and reviews. If you run into any problems, don't hesitate to contact me!