{"name":"Native Audio","key":"nativeaudio","version":"1.0.8","instructions":"This simply uses the browser's native HTML5 audio tag with no alternate styling.","showatto":"0","showplayers":"1","requirecss":"","requirejs":"","shim":"","defaults":"","amd":"1","body":"<audio id=\"@@AUTOID@@\" controls=\"controls\" controlsList=\"nodownload\" class=\"nomediaplugin\">\n  <source src=\"@@VIDEOURL@@\" type=\"audio/mpeg\">\n  Your browser does not support HTML5.\n</audio>\n\n<a id=\"@@AUTOID@@_download_button\" class=\"@@CANDOWNLOAD@@ nomediaplugin nopoodll\"  href=\"@@VIDEOURL@@\" download>Download</a>","bodyend":"","script":"//add subtitles if we need to\nif(@@data-subtitles@@){\n//add a caption track, it might be supported ...\n  var audiohtml_captions='<track kind=\"captions\" src=\"' + @@data-subtitles@@ + '\" srclang=\"' + @@data-language@@ + '\" label=\"Captions\" default=\"true\" />';\n   $('#' + @@AUTOID@@).append(audiohtml_captions);\n\n  //add the data params to the URL\n  $('#' + @@AUTOID@@).attr('data-subtitles',@@data-subtitles@@);\n  $('#' + @@AUTOID@@).attr('data-language',@@data-language@@);\n}\n\n//code to auto refresh if this looks like a placeholder file\n var player = $('#' + @@AUTOID@@);\nif(typeof player[0] == 'undefined'){return;}\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].pause();\n  player[0].load();\n });\n};\nif(player[0].readyState==4){\n  refreshfunction();\n}else{\n  player.on('loadedmetadata',refreshfunction);\n}","style":"","dataset":"","datasetvars":"","alternate":"","alternateend":""}