{"name":"Round Mini Audio Player","key":"roundminiaudio","version":"1.0.2","instructions":"This is a small round HTML5 audio player that plays and stops (or pauses) on the click of a single button.","showatto":"0","showplayers":"1","requirecss":"//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css","requirejs":"","shim":"","defaults":"pause=fa-stop,play=fa-volume-up,stoporpause=stop|pause, background=red,color=#fff,width=40,height=40","amd":"1","body":"<button type='button' id='@@AUTOID@@' class=\"roundmini-audio-player\" style=\"width: @@WIDTH@@px; height: @@HEIGHT@@px; background-color: @@background@@; \tborder-radius: 50%;\">\n\t<audio class=\"roundminiaudio nomediaplugin\" src=\"@@VIDEOURL@@\">\n\t</audio>\n\t<i class=\"fa fa-volume-up\" aria-hidden=\"true\" style=\"color:@@color@@\"></i>\n</button>","bodyend":"","script":"var aplayer = $('#' + @@AUTOID@@).children().first();\nvar fa = $('#' + @@AUTOID@@ + ' .fa');\n\naplayer[0].addEventListener('ended', function(){\n    $(fa).removeClass(@@pause@@);\n    $(fa).addClass(@@play@@);\n    aplayer[0].pause();\n});\n\n$('#' + @@AUTOID@@).click(function(){\n  if(!aplayer[0].paused && !aplayer[0].ended){\n     aplayer[0].pause();\n     if(@@stoporpause@@=='stop'){aplayer[0].load();}\n     $(fa).removeClass(@@pause@@);\n     $(fa).addClass(@@play@@);\n   }else{\n     aplayer[0].play();\n     $(fa).removeClass(@@play@@);\n     $(fa).addClass(@@pause@@);\n   }\n});\n","style":"button.roundmini-audio-player{\n\tborder: none;\n\tcolor: #fff;\n}\nbutton.roundmini-audio-player .fa{\n     font-size: 28px;\n}","dataset":"","datasetvars":"","alternate":"<audio id=\"@@AUTOID@@\" controls=\"controls\" class=\"nomediaplugin\">\n  <source src=\"@@VIDEOURL@@\" type=\"audio/mpeg\">\n</audio>","alternateend":""}