- Home /
Unity Video player in Safari Webgl
Unity 2018.1.9
Safari 11.1.2
I'm using the Unity Video play with a url to load an mp4 in webgl that is stored in streaming assets. Other requests to streaming assets work without issue.
The video works in all other browsers but safari. I get an insecure error. The operation is insecure.
If I check the Develop/Disable Cross-Origin Restrictions
the video loads properly.
The CORS on my server are set properly.
Since I don't control the request from the video player and my other streaming assets requests work, I'm thinking the request is not including something needed for the origin cors check.
I was going to construct the request myself and get a Video Clip using UnityWebRequestMultimedia but it looks like that is not yet supported.
Any advice is appreciated.
Answer by vyvoxel · Jul 02, 2021 at 10:22 AM
@jeff_unity101 This is an open issue even now in Unity. I used this asset to overcome this issue. https://assetstore.unity.com/packages/tools/video/videoplayerwebgl-192420