Commit 7c634b6d authored by fred's avatar fred
Browse files

set m3u link to the aac stream if there's no ogg support

parent 72730b68
...@@ -422,5 +422,12 @@ $(function() { ...@@ -422,5 +422,12 @@ $(function() {
} }
} }
init(); init();
if (! document.createElement('audio').canPlayType('audio/ogg') &&
document.createElement('audio').canPlayType('audio/aac') ) {
$('#ogg-m3u').hide().removeClass('resymbol');
$('#aac-m3u').addClass('resymbol').show();
}
var konami = new Konami('/party'); var konami = new Konami('/party');
}); });
...@@ -5,7 +5,8 @@ ...@@ -5,7 +5,8 @@
<div id="audioPlayer" class="cf"> <div id="audioPlayer" class="cf">
<div id="Live" class="padded cf"> <div id="Live" class="padded cf">
<div class="metas custom"> <div class="metas custom">
<a class="button resymbol icon-download inBlock" title="{% trans 'Get the stream on your player!' %}" href="http://streaming.domainepublic.net:8000/radiopanik.ogg.m3u"></a> <a id="ogg-m3u" class="button resymbol icon-download inBlock" title="{% trans 'Get the stream on your player!' %}" href="http://streaming.domainepublic.net:8000/radiopanik.ogg.m3u"></a>
<a id="aac-m3u" style="display: none;" class="button icon-download inBlock" title="{% trans 'Get the stream on your player!' %}" href="http://streaming.domainepublic.net:8000/radiopanik.aac.m3u"></a>
<button title="{% trans 'Need some help?' %}" onclick="$('#PlayerHelp').toggle();" class="icon-question-sign"></button> <button title="{% trans 'Need some help?' %}" onclick="$('#PlayerHelp').toggle();" class="icon-question-sign"></button>
</div> </div>
<span class="button" id="DirectStreamPanikControler"> <span class="button" id="DirectStreamPanikControler">
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment