Added check for if no video buffered exists in video feature
This commit is contained in:
parent
19c0064e2f
commit
b4f9f302de
@ -344,6 +344,7 @@ class Video extends React.PureComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
handleProgress = () => {
|
handleProgress = () => {
|
||||||
|
if (!this.video.buffered) return;
|
||||||
if (this.video.buffered.length > 0) {
|
if (this.video.buffered.length > 0) {
|
||||||
this.setState({ buffer: this.video.buffered.end(0) / this.video.duration * 100 });
|
this.setState({ buffer: this.video.buffered.end(0) / this.video.duration * 100 });
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user