{"name":"Mediaelement_Video","key":"mediaelementvideo","version":"1.0.5","instructions":"This is a shimmed version of mediaelementjs for video","showatto":"0","showplayers":"1","requirecss":"/filter/poodll/3rdparty/mediaelement-2.22.0/build/mediaelementplayer.min.css","requirejs":"/filter/poodll/3rdparty/mediaelement-2.22.0/build/mediaelement-and-player.js","shim":"mejs","defaults":"WIDTH=640,HEIGHT=480","amd":"1","body":"<video id=\"@@AUTOID@@\" src=\"@@VIDEOURL@@\" width=\"@@WIDTH@@\" height=\"@@HEIGHT@@\" class=\"nomediaplugin\"></video>\n\n<a id=\"@@AUTOID@@_download_button\" class=\"@@CANDOWNLOAD@@ nomediaplugin\"  href=\"@@VIDEOURL@@\" download>Download</a>","bodyend":"","script":"var 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":""}