Sha256: 5681ec9890ca7b4d40eb3fbe285a780ced216c03ad977bed31850bc34755de9b
Contents?: true
Size: 900 Bytes
Versions: 30
Compression:
Stored size: 900 Bytes
Contents
function initialize_audio() { var test_audio= document.createElement("audio") //try and create sample audio element var audiosupport= (test_audio.play)? true : false if (audiosupport){ $('audio').each(function() { this.controls = true; }); }else { $('audio').each(function() { $(this).attr("preload","auto"); }); audiojs.events.ready(function() { var as = audiojs.createAll({ imageLocation: '/assets/player-graphics.gif', swfLocation: '/assets/audiojs.swf' }); // remove html 5 player from veiw on firefox and safari $('.audiojs').addClass('no-audio-background') $('.audiojs .play-pause').addClass('hide') $('.audiojs .scrubber').addClass('hide') $('.audiojs .time').addClass('hide') }); }; }
Version data entries
30 entries across 30 versions & 1 rubygems