souporserious / react-media-player

React audio and video player.
https://souporserious.github.io/react-media-player/
ISC License
470 stars 100 forks source link

How to continue work with Player after connection fail #97

Open allomov opened 2 years ago

allomov commented 2 years ago

Hello, everyone! Thank you for creating and supporting such a valuable library.

I will be happy if you help me solve one issue I have had for a long time. Whenever the connection to the URL provided into src is lost, I have onError callback called, and this allows to show an error popup for a user.

But I didn't find a way to start playing the record again after the connection was back. Reloading the page with F5 may help, but this is not always comfortable for a user.

Could you please suggest what I can try to solve the issue? Thank you.