Commit b4f9f302 authored by mgabdev's avatar mgabdev

Added check for if no video buffered exists in video feature

parent 19c0064e
......@@ -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 });
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment