diff --git a/public/js/events.js b/public/js/events.js index da154d6..a07da67 100644 --- a/public/js/events.js +++ b/public/js/events.js @@ -71,8 +71,9 @@ function playStreamEvent() { }); $('#stream_popup').on('hidden.bs.modal', function () { - //bad hack to fix my issue with video js reloading - location.reload(); + if(videojs.getPlayers()["PlayStream"]) { + delete videojs.getPlayers()["PlayStream"]; + } })