【发布时间】:2014-09-02 15:36:27
【问题描述】:
我正在使用 Unity 构建一个简单的应用程序,我需要将它与其他 html 元素一起嵌入到 Web 浏览器中。我找到了这个插件: http://www.41post.com/3513/programming/embedding-the-unity-web-player-with-jquery
一开始它似乎可以工作,然后我发现只有我的 macbook 能够显示 Unity 应用程序。 我尝试使用 Windows 电脑,unity 网络播放器只是全屏显示并覆盖了网站的所有其他元素,然后我尝试了另一台 macbook 和 linux 电脑,网络浏览器控制台给了我这个:
Uncaught SyntaxError: Unexpected identifier
Failed to load resource: net::ERR_FILE_NOT_FOUND file:///home/path_to_.unity3d file/%%INSTALLIMAGE%%
Uncaught ReferenceError: AutomaticReload is not defined
Invalid App Id: Must be a number or numeric string representing the application id. all.js:57
The "fb-root" div has not been created, auto-creating all.js:57
FB.getLoginStatus() called before calling FB.init(). all.js:57
GET chrome-extension://boadgeojelhgndaghljhdicfkmllpafd/cast_sender.js net::ERR_FAILED www-embed-player.js:140
GET chrome-extension://dliochdbjfkdbacpmhlcpmleaejidimm/cast_sender.js net::ERR_FAILED www-embed-player.js:140
GET chrome-extension://hfaagokkkhdbgiakmmlclaapfelnkoah/cast_sender.js net::ERR_FAILED www-embed-player.js:140
GET chrome-extension://fmfcbgogabcbclcofgocippekhfcmgfj/cast_sender.js net::ERR_FAILED www-embed-player.js:140
GET chrome-extension://enhhojjnijigcajfphajepfemndkmdlo/cast_sender.js net::ERR_FAILED www-embed-player.js:140
Resource interpreted as Image but transferred with MIME type image/*: "https://s3.amazonaws.com/agilecrm/panel/uploaded-logo/1400137616110?id=upload-container". livechat-v2.js:1
Uncaught ReferenceError: YT is not defined
我所说的浏览器是 Chrome,在所有计算机中。
有人知道如何解决这个问题吗?
编辑:我已禁用所有可能干扰浏览器的扩展程序/插件。
【问题讨论】:
-
您使用 jQuery 嵌入它有什么原因吗?查看“默认”网络播放器构建的源代码,了解它通常是如何嵌入到页面中的。
-
我对这个东西很陌生,我在某处读到这是制作带有 html 元素和统一网络播放器的网页的唯一方法。你能给我链接一个来源吗?非常感谢!
-
你不需要外部源,选择Webplayer平台后点击build就可以得到HTML文件。
-
我已经尝试过你的方法,但在同一台计算机上出现同样的错误(我已经使用 iframe 导入了 html 文件。希望这是一个好方法)...
-
html文件本身是否导致错误?