0

我正在使用带有 YouTube 视频的Revolution Slider开发一个 WordPress 网站,该视频应该在视频完成后自动播放和滑动。我正在使用完全相同的设置和 3 个环境测试该站点:本地、私有开发服务器和客户端服务器。本地和开发工作正常,客户端的服务器确实显示了视频,但没有得到自动播放,也没有最后的幻灯片。

我想知道客户端服务器上的控制台是这样说的:

不受信任的来源:www.clientsdomain.com ... www-embed-player.js:165

这仅显示在他们的服务器上,其他环境运行良好。这个错误似乎导致了自动播放等问题。此消息每 0.5 秒连续显示一次。

在职的:

www.client.local

client.mydevserver.com

不工作:

www.client.com

更新

幻灯片的 HTML 输出(由插件输出 - 最后两行可能导致错误):

<div class="tp-caption tp-fade fullscreenvideo tp-videolayer start" data-x="0" data-y="0" data-speed="300" data-start="500" data-easing="Power3.easeInOut" data-elementdelay="0.1" data-endelementdelay="0.1" data-ytid="7YtvsxB9xQY" data-videowidth="100%" data-videoheight="100%" data-videoattributes="version=3&amp;enablejsapi=1&amp;html5=1&amp;hd=1&amp;wmode=opaque&amp;showinfo=0;;origin=http://www.clientsdomain.com;" data-videorate="1" data-videocontrols="controls" data-dottedoverlay="threexthree" data-forcecover="1" data-aspectratio="16:9" data-endspeed="300" data-autoplay="true" data-autoplayonlyfirsttime="true" data-nextslideatend="true" style="z-index: 5; width: 1524px; height: 847px; left: 0px; top: 0px; visibility: visible; opacity: 1; transform: matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);">     
    <iframe style="display: block; width: 1642px; height: 912px; transform-style: preserve-3d; z-index: 0; visibility: inherit; opacity: 1; transform: matrix(1, 0, 0, 1, 0, 0);" src="https://www.youtube.com/embed/7YtvsxB9xQY?version=3&amp;enablejsapi=1&amp;html5=1&amp;hd=1&amp;wmode=opaque&amp;showinfo=0;;origin=http://www.clientsdomain.com;" width="100%" height="100%" id="iframe52739" class="HasListener"></iframe>
</div>

控制台输出:

Invalid App Id: Must be a number or numeric string representing the application id.
clobbering cookies for Location
clobbering cookies for Location
clobbering cookies for Location
clobbering cookie getter
clobbering cookie: remote_sid=;domain=youtube.com;path=/;expires=Sat, 31 Jan 1970 23:00:00 GMT
clobbering cookie getter
clobbering cookie: remote_sid=;domain=youtube.com;path=/;expires=Sat, 31 Jan 1970 23:00:00 GMT
Failed to load resource: net::ERR_FAILED
clobbering cookie getter
clobbering cookie: remote_sid=;domain=youtube.com;path=/;expires=Sat, 31 Jan 1970 23:00:00 GMT
clobbering cookie getter
clobbering cookie: remote_sid=;domain=youtube.com;path=/;expires=Sat, 31 Jan 1970 23:00:00 GMT
Failed to load resource: net::ERR_FAILED
Failed to load resource: net::ERR_FAILED
clobbering cookie getter
clobbering cookie: remote_sid=;domain=youtube.com;path=/;expires=Sat, 31 Jan 1970 23:00:00 GMT
clobbering cookie getter
clobbering cookie: remote_sid=;domain=youtube.com;path=/;expires=Sat, 31 Jan 1970 23:00:00 GMT
Failed to load resource: net::ERR_FAILED
Failed to load resource: net::ERR_FAILED
Failed to load resource: net::ERR_FAILED
clobbering cookie getter
clobbering cookie: remote_sid=;domain=youtube.com;path=/;expires=Sat, 31 Jan 1970 23:00:00 GMT
Failed to load resource: net::ERR_FAILED
Failed to load resource: net::ERR_FAILED
Failed to load resource: net::ERR_FAILED
clobbering cookie getter
clobbering cookie: remote_sid=;domain=youtube.com;path=/;expires=Sat, 31 Jan 1970 23:00:00 GMT
Failed to load resource: net::ERR_FAILED
Failed to load resource: net::ERR_FAILED
Failed to load resource: net::ERR_FAILED
clobbering cookie getter
clobbering cookie: remote_sid=;domain=youtube.com;path=/;expires=Sat, 31 Jan 1970 23:00:00 GMT
Failed to load resource: net::ERR_FAILED
Failed to load resource: net::ERR_FAILED
Failed to load resource: net::ERR_FAILED
Failed to load resource: net::ERR_FAILED
Failed to load resource: net::ERR_FAILED
Failed to load resource: net::ERR_FAILED
clobbering cookies for Location
clobbering cookie getter
clobbering cookie: _ga=GA1.2.1515857171.1432459119; path=/; expires=Tue, 23 May 2017 09:18:39 GMT; domain=twinesocial.com;
clobbering cookie getter
clobbering cookie: _ga=GA1.3.1515857171.1432459119; path=/; expires=Tue, 23 May 2017 09:18:39 GMT; domain=apps.twinesocial.com;
clobbering cookie getter
clobbering cookie: _ga=GA1.1.1515857171.1432459119; path=/; expires=Tue, 23 May 2017 09:18:39 GMT; 
clobbering cookie getter
clobbering cookie: fbm_130316653831265=; expires=Wed, 04 Feb 2004 08:00:00 GMT;
clobbering cookie: fbm_130316653831265=; expires=Wed, 04 Feb 2004 08:00:00 GMT;domain=apps.twinesocial.com;
clobbering cookie: fbm_130316653831265=base_domain=true; expires=Tue, 24 May 2016 09:18:39 GMT; path=/; domain=true
Call from classic.js
clobbering cookie getter
clobbering cookie: _ga=GA1.2.1515857171.1432459119; path=/; expires=Tue, 23 May 2017 09:18:39 GMT; domain=twinesocial.com;
clobbering cookie getter
clobbering cookie: _ga=GA1.3.1515857171.1432459119; path=/; expires=Tue, 23 May 2017 09:18:39 GMT; domain=apps.twinesocial.com;
clobbering cookie getter
clobbering cookie: _ga=GA1.1.1515857171.1432459119; path=/; expires=Tue, 23 May 2017 09:18:39 GMT; 
clobbering cookie getter
clobbering cookies for Location
clobbering cookie getter
clobbering cookies for Location
clobbering cookie getter
clobbering cookie: remote_sid=;domain=youtube.com;path=/;expires=Sat, 31 Jan 1970 23:00:00 GMT
Failed to load resource: net::ERR_FAILED
Failed to load resource: net::ERR_FAILED
Failed to load resource: net::ERR_FAILED
Failed to load resource: net::ERR_FAILED
Failed to load resource: net::ERR_FAILED
Failed to load resource: net::ERR_FAILED
Untrusted origin: http://www.clientsdomain.de
Untrusted origin: http://www.clientsdomain.de

您可以在此处找到一个工作示例(不过,幻灯片 2,Vimeo)。

我的(希望不是愚蠢的)问题是:这个问题可能与域名有关吗?所有三个环境的设置都是相同的,并且所有域都是非 ssl。

谢谢!

4

3 回答 3

0

你在使用广告拦截器吗?我关闭了我的广告拦截器 Privacy Badger,因为我遇到了同样奇怪的破坏 cookie,它修复了控制台错误。

于 2015-10-21T19:23:33.597 回答
0

这是按设计工作的。出于安全原因,我们忽略来自不受信任来源的消息,并记录这些警告,以便客户知道我们忽略了这些事件。没有办法禁用。

于 2016-07-13T10:39:57.860 回答
0

可能与origin参数有关,请尝试完全删除它,它是可选的并且可以防止恶意的第三方 JavaScript。如果此参数有误,则视频可能无法播放。

于 2015-12-24T11:19:50.113 回答