5
ipadのビデオタグ用のjQueryプラグインを作成しています。私のプラグインが行うことの1つは、あなたが最後にそれを見ていないところで映画を再生することです。私は現在の時間を設定する際に問題があります。 「stalled
」イベントが発生した後にのみ設定できることがわかりました。ムービーの再生が開始された後、ストップしたものがipadで起動するように見えます(これはHTTPライブストリームビデオです)。他の環境、つまりPC上のGoogle Chromeではこのイベントは表示されません。だから、このコードは動作しますが、私はstalled
イベントを使用することに不快感を感じます。 canplaythrough
、playing
などを試しましたが、その場合はcurrentTime
への更新は無視されます。他の誰かがこれを経験していますか?ipadのHTML5ビデオタグのcurrentTimeを設定する
var theClass = this;
$(this.videoElement).bind("pause play stalled error abort progress waiting playing webkitfullscreenchange canplaythrough", null, function (e) {
///<summary>bind to the various events we are interested in during playback. event state changes will be saved to
///local storage. If we detect the media has finished playing we will exit fullscreen and trigger our mediaDone event</summary>
if (e.type == "stalled" && theClass.resumeTriggered) {
theClass.resumeTriggered = false;
theClass.resumeTime = theClass.resumeTime + 0.1;
$("#smpPlayerDebug").append("<p> seeking to time " + theClass.resumeTime + "</p>");
e.srcElement.currentTime = theClass.resumeTime;
}
..またはAppleは標準について気にしません:) –