Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

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?
     
    yty likes 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:
    110
    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:
    50
    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:
    597
    I was able to make it work in Safari. Have a look at my response here
     
  10. justinduy

    justinduy

    Joined:
    Dec 26, 2016
    Posts:
    6
    it didn't :(
     
unityunity