iPad Web アプリ内の HTML5 Video 要素にいくつかのイベントをアタッチしようとしていますが、起動していないようです。これをデバイスとシミュレーターの両方でテストしましたが、同じ結果が得られました。ただし、イベントは(少なくとも onclick の場合)デスクトップ Safari で正常に動作します。また、ビデオ要素を div に交換しようとしましたが、イベントは正常に発生しますか? 他の誰かがこれに遭遇し、回避策を考えていますか?
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Test video swipe</title>
</head>
<body>
<video src='somevid.mp4' id='currentlyPlaying' width='984' height='628' style='background-color:#000;' controls='controls'></video>
<script>
var theVid = document.getElementById("currentlyPlaying");
theVid.addEventListener('touchstart', function(e){
e.preventDefault();
console.log("touchstart");
}, false);
theVid.addEventListener('click', function(e){
e.preventDefault();
console.log("click");
}, false);
theVid.addEventListener('touchmove', function(e){
console.log("touchmove");
}, false);
theVid.addEventListener('touchend', function(e){
console.log("touchend");
}, false);
theVid.addEventListener('touchcancel', function(e){
console.log("touchcancel");
}, false);
</script>
</body>
</html>