summaryrefslogtreecommitdiffstats
path: root/WebCore/manual-tests/video-player.html
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/manual-tests/video-player.html')
-rw-r--r--WebCore/manual-tests/video-player.html11
1 files changed, 2 insertions, 9 deletions
diff --git a/WebCore/manual-tests/video-player.html b/WebCore/manual-tests/video-player.html
index 2bced51..74f0a38 100644
--- a/WebCore/manual-tests/video-player.html
+++ b/WebCore/manual-tests/video-player.html
@@ -37,10 +37,7 @@ function stoppedPlaying() {
function updateProgress(ev) {
if (!showProgress)
return;
- if (ev.total)
- playButton.innerHTML = "Loading " + (100*ev.loaded/ev.total).toFixed(0) + "%";
- else
- playButton.innerHTML = "Loading...";
+ playButton.innerHTML = "Loading...";
playButton.className = "videobutton videoloading";
}
function initVideo() {
@@ -90,12 +87,8 @@ function initVideo() {
playButton.addEventListener("click", function () {
if (videoElem.paused) {
if (!videoElem.src)
- //videoElem.src = "sample.mov";
videoElem.src = "http://movies.apple.com/movies/us/apple/ipoditunes/2007/touch/ads/apple_ipodtouch_touch_r640-9cie.mov";
- if (videoElem.readyState == HTMLMediaElement.DATA_UNAVAILABLE)
- videoElem.load();
- if (videoElem.readyState == HTMLMediaElement.CAN_PLAY_THROUGH)
- videoElem.play();
+ videoElem.play();
} else
videoElem.pause();
} );