11<?php
22//error_reporting(E_ALL);
3+ $ showBitrate =true ; //set to true to show bitrate, and install 'exiftool', check the README.md
4+ $ versionString ="v0.99b " ;
35if (isset ($ _GET ["folder " ]))
46{
57 $ path =rawurldecode ($ _GET ["folder " ]);
248250<div id="navList" class="noselect"></div>
249251<div id="playList" class="noselect"></div>
250252<div id="playerControls" class="noselect">
251- <div id="currentPlaying"><a href="https://github.com/CelliesProjects/html5_audioplayer" target="_blank">html5_audioplayer v0.9 </a></div>
253+ <div id="currentPlaying"><a href="https://github.com/CelliesProjects/html5_audioplayer" target="_blank">html5_audioplayer <?php echo $ versionString ?> </a></div>
252254<div id="controlArea"><img id="previousButton" class="actionIcon" src="?icon=previous"><img id="playButton" class="actionIcon" src="?icon=play"><img id="nextButton" class="actionIcon" src="?icon=next"><input type="range" min="0" max="0" value="0" class="" id="slider"><p id="currentTime"></p><img id="clearList" class="actionIcon" src="?icon=clearlist"></div>
253255<audio controls autoplay id="player">Your browser does not support the audio element.</audio>
254256<script>
@@ -461,6 +463,7 @@ function resetPlayer()
461463 var nowPlaying=player.src;
462464 if($('.playListLink').eq(currentSong).data('path')!=undefined)thisSong=encodeURIComponent($('.playListLink').eq(currentSong).data('path'))+'/';
463465 thisSong+=encodeURIComponent($('.playListLink').eq(currentSong).text());
466+ <?php if ($ showBitrate ):?>
464467 $.get('?bitrate='+thisSong,function(){
465468 })
466469 .done(function(data){
@@ -469,6 +472,7 @@ function resetPlayer()
469472 .fail(function(){
470473 console.log('error getting bitrate');
471474 });
475+ <?php endif ;?>
472476 });
473477
474478 player.addEventListener('playing',function()
0 commit comments