Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by Boi · Sep 29, 2012 at 08:34 AM · webplayernot workingchromefirefox

webplayer Chrome not working, Firefox ok

Hi,

I've noticed that my Unity projects in my site www.astragamingstudios.tk don't work when I use Chrome. They do work when I use Firefox. Other Unity projects on other sites do work. My friend is experiencing the same on his laptop.

My site is a standard Google sites. I use Windows 7, Chrome Version 22.0.1229.79 m, Firefox 12.0.

Could it be the newer webplayer isn't compatible with older web builds?

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

7 Replies

· Add your reply
  • Sort: 
avatar image
2

Answer by CreativeChris · Oct 16, 2012 at 04:00 PM

Hi Boi,

Okay, don't worry about sending us a bug report, I managed to find the offending error:

If you launch developer tools and click the console, you will see a warning which says it's blocking UnityObject: "ran insecure content from http://webplayer.unity3d.com/download_webplayer-3.x/3.0/uo/UnityObject.js."

This line of html on your page:

"iframe title="Unity 3.3 gadget (1.004)" width="800" height="600" scrolling="no" frameborder="0" id="1655576568" name="1655576568" allowtransparency="true" class="igm"> src="//":

You missed out the protocol in src="//" so to fix it should be src="http://b

Or if you want to keep https, you can just link to our https UnityObject file using this link:

https://ssl-webplayer.unity3d.com/download_webplayer-3.x/3.0/uo/UnityObject.js instead of the one your using

http://webplayer.unity3d.com/download_webplayer-3.x/3.0/uo/UnityObject.js

Thanks, Chris

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Boi · Oct 16, 2012 at 07:04 PM 0
Share

Hi Chris,

Could you provide some screenshots or something where the HT$$anonymous$$L should be altered? I can't find it anywhere. I think this HT$$anonymous$$L code is auto generated. Also can you explain why this still works fine in Firefox?

avatar image Boi · Oct 24, 2012 at 06:53 PM 0
Share

Can anyone help me with this? Where exactly do I need to change this HT$$anonymous$$L code? I think (not sure) it is auto generated by the gadget that embeds the Unity web build. Can anyone explain why it still works fine with Firefox?

avatar image
1

Answer by Graham-Dunnett · Dec 07, 2012 at 01:05 PM

Usually a web player is placed into the page using JavaScript fetched from the Unity3d.com website. This JS file is called UnityObject.js (or UnityObject2.js for 4.x content). You can see the source for this if you make an offline build of the game. Open this script in a text file. Search for ssl and you'll find:

useSSL = (document.location.protocol == 'https:'), //This will turn off enableUnityAnalytics, since enableUnityAnalytics don't have a https version. baseDomain = useSSL ? "https://ssl-webplayer.unity3d.com/" : "http://webplayer.unity3d.com/",

This shows you how UnityObject.js handles the choice between a regular http site, and a secure site hosted on a https protocol.

In your website, you appear to be running on an https site. Your html seems to use a Google gadget. You may need to contact whoever created this gadget and ask how it is meant to handle content coming from an http site when the webpage is hosted on a https site. I would recommend, however, using the UnityObject.js/UnityObject2.js to get the content onto the page. This JS also handles installing the plugin if the user does not have it already. I do not know if this is compatible with Google sites, however.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by CreativeChris · Oct 15, 2012 at 03:26 PM

Hi Boi,

Could be a server issue but I'm only guessing here, what do you mean by "don't work", what actually happens? Please file a bug report on this and provide screenshots and video's. I looked on your website and I couldn't find any games, please link to them in the bug report.

Thanks, Chris

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by Boi · Oct 15, 2012 at 05:20 PM

The term "games" is somewhat misleading I suppose. I have several Unity projects I use in my classes (AI, AR, multiplayer, ...). Most of them are small mini-games. For example Space Invaders 3D (an actual game) which is under "Unity 3D games 'n demos". This works fine in Firefox, but Chrome keeps telling me to install the webplayer. I can play other Unity games from other sites in Chrome, so I don't think that is the issue. Any help is welcome.

What Space Invaders 3D looks like in Firefox: Firefox

What Space Invaders 3D looks like in Chrome: Chrome

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image grimmy · Nov 09, 2012 at 02:42 PM 0
Share

I have the same issue, but oddly, I have a tester running the latest version of Chrome who gets past the 'Webplayer Install' prompt. It seems that it works for some (?!)

avatar image Boi · Nov 10, 2012 at 10:17 AM 0
Share

What do you mean by "tester"?

avatar image
0

Answer by astorga · Nov 09, 2012 at 04:33 PM

Looks like you are hosting your game in a "https" (secured) server. I had exactly this problem too, and the only solution I found is to host it in a non-secured server ("http").

Edit: Actually, there is a way to make it work, you just need to change the scripts references. You can get a gadget to use https references here. While you can use the gadget from the link, I do recommend that you copy and re-host it since I can't guarantee the link availability.

Comment
Add comment · Show 6 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Boi · Nov 10, 2012 at 10:18 AM 0
Share

So where did you host it then? Not on Google Sites?

avatar image Boi · Nov 10, 2012 at 10:27 AM 0
Share

I moved the .unity files to a dropbox folder, but that didn't make any difference. I'm still using the Unity gadget (to embed in Google Sites).

avatar image astorga · Nov 10, 2012 at 11:51 AM 0
Share

The html need to be in a non-secure context. Since google sites, by default, use a secure context (unless you specify your own domain), it will behave like that.

You can buy your own domain and configure your site to use that. Or, you can host the .html (and all dependent files) in your dropbox public folder and access your game from there.

avatar image Boi · Nov 10, 2012 at 12:09 PM 0
Share

Thank you for your replies. But is works fine when I use Firefox. It used to work fine when I used Chrome (several month ago). What exactly is causing this? Is there really no way to embed a Unity webplayer in a Google sites? Seem like it should be possible.

avatar image astorga · Nov 10, 2012 at 12:36 PM 0
Share

Firefox should show a warning about this, at least in first access. Chrome had this behavior too, but for some reason I can't understand, it simply blocks non-secure content now.

It's possible to use the game in google sites, if you have your own, non-secure domain.

Show more comments
  • 1
  • 2
  • ›

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

15 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Crash: R6025 pure virtual function call in webplayer_win.dll 3 Answers

Unity 64 bit support Question 2 Answers

Why cant some users access my game using Chrome? 1 Answer

Unity Web Player distorts objects 0 Answers

Why are Unity Websites using my cpu? (firefox/chrome) 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges