Commit 4f301b03 authored by Anssi Piirainen's avatar Anssi Piirainen

Merge pull request #154 from flowplayer/js-controls-improvements

js controls improvements
parents 793ee05f fcb093ab
......@@ -256,7 +256,8 @@
time.innerHTML = getTime(status.time, clip.duration);
// buffer width
var x = getMax(status.bufferEnd, duration);
// assume "filled buffer" for streaming protocols #152
var x = getMax(clip.provider == "http" ? status.bufferEnd : duration, duration);
bufferBar.style.width = x + "px";
head.setMax(x);
......@@ -297,6 +298,7 @@
// clear timer when clip ends
self.onFinish(function(clip) {
play.className = opts.playClass;
clearInterval(timer);
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment