Skip to content

Commit

Permalink
fix tests, remove update display list in LiveDisplay
Browse files Browse the repository at this point in the history
  • Loading branch information
tomjohnson916 committed Mar 31, 2014
1 parent bc47c5e commit 2fb10cb
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions src/js/control-bar/live-display.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
vjs.LiveDisplay = vjs.Component.extend({
init: function(player, options){
vjs.Component.call(this, player, options);

player.on('loadstart', vjs.bind(this, this.updateContent));
}
});

Expand All @@ -28,17 +26,3 @@ vjs.LiveDisplay.prototype.createEl = function(){

return el;
};

vjs.LiveDisplay.prototype.updateContent = function(){

// Most Live streams, like RTMP, will report a duration value of -1
// HLS Live report window.INFINITY

/*
if (player.duration() < 0 || player.duration() === window.INFINITY) {
this.show();
} else {
this.hide();
}
*/
};

0 comments on commit 2fb10cb

Please sign in to comment.