mirror of
https://github.com/videojs/video.js.git
synced 2025-07-17 01:42:41 +02:00
whitespace fix
This commit is contained in:
@ -504,16 +504,11 @@ vjs.Player.prototype.onDurationChange = function(){
|
|||||||
// We need to get the techGet response and check for a value so we don't
|
// We need to get the techGet response and check for a value so we don't
|
||||||
// accidentally cause the stack to blow up.
|
// accidentally cause the stack to blow up.
|
||||||
var duration = this.techGet('duration');
|
var duration = this.techGet('duration');
|
||||||
|
|
||||||
if (duration) {
|
if (duration) {
|
||||||
|
|
||||||
if (duration < 0) {
|
if (duration < 0) {
|
||||||
|
|
||||||
duration = Infinity;
|
duration = Infinity;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.duration(duration);
|
this.duration(duration);
|
||||||
|
|
||||||
// Determine if the stream is live and propagate styles down to UI.
|
// Determine if the stream is live and propagate styles down to UI.
|
||||||
if (duration === Infinity) {
|
if (duration === Infinity) {
|
||||||
this.addClass('vjs-live');
|
this.addClass('vjs-live');
|
||||||
@ -521,7 +516,6 @@ vjs.Player.prototype.onDurationChange = function(){
|
|||||||
this.removeClass('vjs-live');
|
this.removeClass('vjs-live');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user