WebPlayer with HTTPS broken

To get this out of the way: I know WebGL is the preferred way to deliver Unity over the web. We are using WebGL, but also are continuing to support our Internet Explorer customers using the web player.

Unity Web Player is broken for https. We are using https://ssl-webplayer.unity3d.com/download_webplayer–3.x/3.0/uo/UnityObject2.js to create the player. However, when this script tries to download the player, we get the following message:

https://imgur.com/a/p6Bd1kS direct link to image

Note that this link works fine for sites that don’t use https (and it also strips off the “ssl-” prefix).

I’m not sure if this is related, but if you go to https://unity3d.com/webplayer, the “Download” link for Windows is also broken.

Does anyone know if there is a way for us to host the webplayer plugin ourselves?

I was able to find a workaround. Posting here in case anyone else has a similar problem in the future. Steps:

  1. Locate your local copy of UnityObject2.js. It’s installed in the Unity directory (on my machine this is C:\Program Files\Unity\Editor\Data\Resources). For more about where to find it, see here.
  2. Place this file in your website directory, alongside your index.html file.
  3. Modify UnityObject2.js: search for the line near the top that sets the “useSSL” variable (line 63 in my version), and set it to false: useSSL = false;
  4. Inside index.html, replace the stock UnityObject2.js reference with this one: <script type="text/javascript" src="UnityObject2.js"></script>

When I hacked this in, I expected Internet Explorer to give me a warning about using unsecure content. However, it seems to just work flawlessly.

The Webplayer has already been deprecated 3 years ago. It’s no longer supported by most modern browsers.

The download link you posted to the webplayer download has an additional comma at the end. If you want to post links, make sure you actually make them a link with the proper URL. The download link works for me. However note that the webplayer is officially no longer supported since 2016.

I don’t have any browser that still supports the webplayer, so i can’t test if the webplayer actually works. However the auto-download link that this error shows does work for me. Are you sure you don’t have any firewall issues?