{"name":"Mediaelement Video(CDN)","key":"mediaelementvideo_cdn","version":"1.0.9","instructions":"This is a shimmed version of mediaelementjs for video from CDN. It supports subtitles","showatto":"0","showplayers":"1","requirecss":"https://cdnjs.cloudflare.com/ajax/libs/mediaelement/4.2.9/mediaelementplayer.min.css","requirejs":"//cdnjs.cloudflare.com/ajax/libs/mediaelement/4.2.9/mediaelement-and-player.min.js","shim":"mejs","defaults":"WIDTH=640,HEIGHT=480","amd":"1","body":"<video id=\"@@AUTOID@@\" src=\"@@VIDEOURL@@\" width=\"@@WIDTH@@\" height=\"@@HEIGHT@@\" class=\"nomediaplugin\" crossorigin=\"anonymous\"></video>\n\n<a id=\"@@AUTOID@@_download_button\" class=\"@@CANDOWNLOAD@@ nomediaplugin\"  href=\"@@VIDEOURL@@\" download>Download</a>","bodyend":"","script":"if(@@data-subtitles@@){\n  var videohtml_captions='<track kind=\"captions\" src=\"' + @@data-subtitles@@ + '\" srclang=\"en\" label=\"Captions\" default=\"true\" />';\n   $('#' + @@AUTOID@@).append(videohtml_captions);\n}\n\nvar player = new mejs.MediaElementPlayer(@@AUTOID@@);\nif(typeof player == 'undefined'){return;}\nif(typeof player.media == 'undefined'){return;}\nplayer.pause();\n\n//code to auto refresh if this looks like a placeholder file\nplayer.media.onloadedmetadata=function(){\n  var mr = media_refresher.clone();\n   mr.init(@@FILENAME@@,\n@@VIDEOPLACEHOLDERDURATION@@,\nplayer.media.duration,\nfunction(){\n  player.media.src = player.media.src + '&reload=true';\n  player.load();\n });\n}","style":"","dataset":"","datasetvars":"","alternate":"","alternateend":""}