Added check for if no video buffered exists in video feature

This commit is contained in:
mgabdev 2019-08-26 21:59:57 -04:00
parent 19c0064e2f
commit b4f9f302de

View File

@ -344,6 +344,7 @@ class Video extends React.PureComponent {
}
handleProgress = () => {
if (!this.video.buffered) return;
if (this.video.buffered.length > 0) {
this.setState({ buffer: this.video.buffered.end(0) / this.video.duration * 100 });
}