コードを使用してvimeoビデオFULLSCREENを埋め込むプロジェクトに取り組んでいます:
<iframe id="iframe" src="http://player.vimeo.com/video/...../.." width="100%" height="100%" frameborder="0"></iframe>
親ページでMousemove関数を使用して、次のようにMousemoveに会社のロゴを表示しています:
$(document).ready(function() {
var $top = $('#logo');
var $document = $(document);
var timer = null;
var timerIsRunning = false;
$top.hide();
$document.mousemove(function(e){
e.stopPropagation();
});
setTimeout(function() {
$document.mousemove(function(e) {
if($top.is(':hidden')) {
$top.fadeIn(2000);
} else {
if(!timerIsRunning) {
timerIsRunning = true;
clearTimeout(timer);
timer = setTimeout(function() { $top.fadeOut(); }, 15000);
setTimeout(function() {timerIsRunning = true;}, 15000);
}
}
});
}, 2000);
});
私の問題は、ブラウザーが埋め込まれたフルスクリーン ビデオで Mousemove 機能を検出しないことです。これが、ロゴ div が表示されない理由です...
CSS の使用pointer-events: none;
動作しますが、ビデオ プレーヤー コントロールを無効にしました。
解決策はありますか?
ありがとう