Skip to content
Snippets Groups Projects
Verified Commit 475f3994 authored by Andrej Ramašeuski's avatar Andrej Ramašeuski
Browse files

Reconnect

parent f8421156
No related branches found
No related tags found
No related merge requests found
Pipeline #11965 passed
2.3.0
2.3.1
......@@ -52,6 +52,14 @@ player.ready(function() {
window.onresize = resizeVideoJS;
});
player.on('error', function(event) {
var time = player.currentTime();
if(player.error().code === 2) {
player.error(null).pause().load().currentTime(time).play();
}
});
</script>
<style>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment