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

Commit 34de179

Browse files
authored
Merge pull request #27 from tritone11/patch-1
Fix videojs reload on close modal
2 parents f2835a7 + 00e7cf1 commit 34de179

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

public/js/events.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,9 @@ function playStreamEvent() {
7171
});
7272

7373
$('#stream_popup').on('hidden.bs.modal', function () {
74-
//bad hack to fix my issue with video js reloading
75-
location.reload();
74+
if(videojs.getPlayers()["PlayStream"]) {
75+
delete videojs.getPlayers()["PlayStream"];
76+
}
7677
})
7778

7879

0 commit comments

Comments
 (0)