Skip to content
This repository has been archived by the owner on Mar 10, 2024. It is now read-only.

Commit

Permalink
Merge pull request #27 from tritone11/patch-1
Browse files Browse the repository at this point in the history
Fix videojs reload on close modal
  • Loading branch information
omar-haris authored Feb 10, 2021
2 parents f2835a7 + 00e7cf1 commit 34de179
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions public/js/events.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"];
}
})


Expand Down

0 comments on commit 34de179

Please sign in to comment.