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 出力 (プラグインによる出力 - 最後の 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&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)。

私の (ばかではないことを願っています) 質問は次のとおりです。この問題はドメイン名に関連している可能性がありますか? セットアップは 3 つの環境すべてで同一であり、すべてのドメインは非 ssl です。

ありがとうございました!

4

3 に答える 3

0

パラメータに関係がある可能性がありoriginます。完全に削除してみてください。これはオプションであり、悪意のあるサードパーティの JavaScript から保護します。このパラメーターを間違えると、ビデオが機能しない可能性があります。

于 2015-12-24T11:19:50.113 に答える
0

これは設計どおりに機能しています。セキュリティ上の理由から、信頼できないソースからのメッセージは無視し、これらの警告をログに記録して、クライアントがイベントを無視していることを認識できるようにします。無効にする方法はありません。

于 2016-07-13T10:39:57.860 に答える
0

広告ブロッカーを使用していますか?私は広告ブロッカーである Privacy Badger をオフにしました。これは、同じ奇妙な Cookie の破壊が発生し、コンソール エラーが修正されたためです。

于 2015-10-21T19:23:33.597 に答える