Skip to content

Commit

Permalink
update to less than zero on player durationChange
Browse files Browse the repository at this point in the history
  • Loading branch information
tomjohnson916 committed Apr 1, 2014
1 parent 554c003 commit f940bef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ vjs.Player.prototype.onDurationChange = function(){
}

// Determine if the stream is live and propagate styles down to UI.
if (duration <= 0 || duration === window.INFINITY) {
if (duration < 0 || duration === window.INFINITY) {
this.addClass('vjs-live');
} else {
this.removeClass('vjs-live');
Expand Down

0 comments on commit f940bef

Please sign in to comment.