diff --git a/VERSION b/VERSION index 276cbf9e2858c779297bb9f73b34170302949ec4..2bf1c1ccf363acd53eaf92ef33a7f11f5f4557c2 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.3.0 +2.3.1 diff --git a/templates/includes/player.html.ep b/templates/includes/player.html.ep index 0d6f59fa74a7be5d1f2af9d8cd7dccdfb4a9ef7c..8daded55ad9b652bdb9d5754f4b50cb67403abeb 100644 --- a/templates/includes/player.html.ep +++ b/templates/includes/player.html.ep @@ -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>