{"name":"Video JS Audio","key":"videojsaudio","version":"1.0.3","instructions":"This is a version of VideoJS template that shows just an audio player.\n","showatto":"0","showplayers":"1","requirecss":"//vjs.zencdn.net/5.8.8/video-js.css","requirejs":"//vjs.zencdn.net/5.8.8/video.js","shim":"","defaults":"WIDTH=400,HEIGHT=30","amd":"1","body":"<audio id=\"@@AUTOID@@\" class=\"video-js vjs-default-skin nomediaplugin\" controls preload=\"auto\" width=\"@@WIDTH@@\" height=\"@@HEIGHT@@\" data-setup='{\"controlBar\": {\"fullscreenToggle\": false}}'><source src=\"@@VIDEOURL@@\" type=\"@@AUTOMIME@@\" /></audio>\n\n<a id=\"@@AUTOID@@_download_button\" class=\"@@CANDOWNLOAD@@ nomediaplugin\"  href=\"@@VIDEOURL@@\" download>Download</a>","bodyend":"","script":"//code to auto refresh if this looks like a placeholder file\n var player = $('#' + @@AUTOID@@);\nvar refreshfunction =function(){\n  var mr = media_refresher.clone();\n   mr.init(@@FILENAME@@,\n@@AUDIOPLACEHOLDERDURATION@@,\nplayer[0].duration,\nfunction(){\n  player.attr('src', player[0].currentSrc + '&reload=true');\n// player[0].load();\nvar vjsplayer = requiredjs_videojsaudio(@@AUTOID@@);\nvjsplayer.currentTime(0);\nvjsplayer.load();\n });\n};\nif(player[0].readyState==4){\n  refreshfunction();\n}else{\n  player.on('loadedmetadata',refreshfunction);\n}","style":"/* Audio: Remove big play button (leave only the button in controls). */\n.video-js.vjs-audio .vjs-big-play-button {\n  display: none;\n}\n/* Audio: Make the controlbar visible by default */\n.video-js.vjs-audio .vjs-control-bar {\n  display: -webkit-box;\n  display: -webkit-flex;\n  display: -ms-flexbox;\n  display: flex;\n}\n/* Make player height minimum to the controls height so when we hide video/poster area the controls are displayed correctly. */\n.video-js.vjs-audio {\n  min-height: 3em;\n}","dataset":"","datasetvars":"","alternate":"<audio id=\"@@AUTOID@@\"  style=\"background-color: #CCC;\" class=\"nomediaplugin\" controls preload=\"auto\" width=\"320\" height=\"30\" >\n<source src=\"@@VIDEOURL@@\" type=\"@@AUTOMIME@@\" />\n</audio>","alternateend":""}