2

iphoneのみの質問

デモ(動画を触ってみる)

<div class="video">
  <div class="empty"></div>
  <video id="player1" width="540" height="303" preload="none">
    <source src="http://mediaelementjs.com/media/echo-hereweare.mp4" type="video/mp4" />
  </video>
</div>

.video {
  position : relative;
  width    : 540px;
  height   : 303px;
}
.video .empty {
  position : absolute;
  z-index  : 1;
  width    : 100%;
  height   : 100%;
}

$("*").add(document).add(window)
.bind(
  "touchstart touchend touchcancel touchleave touchmove",
  function() { alert(1); }
);

html5 ビデオ コントロールをオフにすることはできませんが、ビデオ コントロールはイベント (特にタッチ イベント) を伝達しません。

回避策はありますか?

4

0 に答える 0