Skip to content
This repository has been archived by the owner on Jul 11, 2022. It is now read-only.

Commit

Permalink
Merge pull request #154 from flowplayer/js-controls-improvements
Browse files Browse the repository at this point in the history
js controls improvements
  • Loading branch information
anssip committed Dec 9, 2013
2 parents 793ee05 + fcb093a commit 4f301b0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion js-plugins/controls/flowplayer.controls.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -297,6 +298,7 @@

// clear timer when clip ends
self.onFinish(function(clip) {
play.className = opts.playClass;
clearInterval(timer);
});

Expand Down

0 comments on commit 4f301b0

Please sign in to comment.