diff --git a/src/main/java/org/olat/modules/video/ui/_content/video_run.html b/src/main/java/org/olat/modules/video/ui/_content/video_run.html index 3b00fdb4bcc9e37d2801ff1b510c83aea93bc535..78c2abb6dbc485c7c0d35264f7207614bf04d61f 100644 --- a/src/main/java/org/olat/modules/video/ui/_content/video_run.html +++ b/src/main/java/org/olat/modules/video/ui/_content/video_run.html @@ -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); }