no need to reset state when error is thrown by the video

This commit is contained in:
NikolaBorislavovHristov 2018-12-10 20:07:07 +02:00
parent da3301da96
commit dd82d462ef

View file

@ -45,12 +45,6 @@ class Player extends Component {
onError = (error) => {
if (error.critical) {
this.stop();
this.setState({
paused: null,
time: null,
duration: null,
volume: null
});
}
alert(error.message);