Search Unity

VideoPlayer in WebGL does not work in Safari. Unity 2019.4 docs incorrect

Discussion in 'WebGL' started by kartoonist435, Jun 30, 2020.

  1. kartoonist435


    Feb 14, 2015
    Hi All I'm having a heck of a time getting videos to play in my WebGL project. They work in Chrome, Firefox and Edge but fail in Safari. I don't know why this is and I've read about every forum post possible. I've fixed CORS issues, http vs https issues, video format and still nothing. I've tried my server, youtube urls, vimeo urls and nothing. My video starts to play on Safari then stops like 2 frames in (this was the best I could get other attempts wouldn't play at all)

    The Unity documentation for 2019.4 says "WebGL does not support playing Video using the MovieTexture class. However, you can efficiently play back video in your WebGL content using the HTML5 video element. Download this Asset Store package for an example of how to do so." The link is broken and looks like it's not even an available asset anymore and this is just left over text from old docs..... thanks for that Unity. Please let us know how to fix this. If I can't publish my WebGL stuff and have it work in Safari it's useless.
    ROBYER1 likes this.
  2. SeanWebber


    Jun 17, 2020
    Just out of interest, how did you manage to video playback working in Chrome? I'm facing the same issues and trawling the internet for solutions but can't seem to solve it.
    ROBYER1 likes this.