fix: a possible breaking change caused by the use of remainingTimeDisplay (#4655)

Esse commit está contido em:
Brandon Casey
2017-10-10 11:35:46 -04:00
commit de GitHub
commit b1de506b43
@@ -64,7 +64,13 @@ class RemainingTimeDisplay extends TimeDisplay {
return;
}
this.updateFormattedTime_(this.player_.remainingTimeDisplay());
// @deprecated We should only use remainingTimeDisplay
// as of video.js 7
if (this.player_.remainingTimeDisplay) {
this.updateFormattedTime_(this.player_.remainingTimeDisplay());
} else {
this.updateFormattedTime_(this.player_.remainingTime());
}
}
/**