Skip to content
Snippets Groups Projects
Commit a1864316 authored by srosse's avatar srosse
Browse files

OO-4543: mute, pause and only after remove the video

parent a39b1e16
No related branches found
No related tags found
No related merge requests found
......@@ -97,7 +97,13 @@
## // try a second time to prevent destroying after a reload
setTimeout(function() {
if(jQuery('#$r.getId("o_vid")').length == 0) {
player.remove();
try {
player.setMuted(true);
player.pause();
player.remove();
} catch(e) {
if(window.console) console.log(e);
}
}
}, 500);
}
......
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