ビデオが終了した後に自動再生してスライドする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 出力 (プラグインによる出力 - 最後の 2 行でエラーが発生する可能性があります):
<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)。
私の (ばかではないことを願っています) 質問は次のとおりです。この問題はドメイン名に関連している可能性がありますか? セットアップは 3 つの環境すべてで同一であり、すべてのドメインは非 ssl です。
ありがとうございました!