Search Unity

Video WebGL Safari videos will not play

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

  1. stephen-donohue


    Nov 17, 2015
    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?
  2. AlexHJohnstone


    Oct 30, 2013
    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


    Jun 5, 2014
    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.