我正在使用带有 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&enablejsapi=1&html5=1&hd=1&wmode=opaque&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&enablejsapi=1&html5=1&hd=1&wmode=opaque&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。
谢谢!