removed filename to not depend on the format mpd is streaming
authorSuperBFG7 <daniel@despite.ch>
Sun, 27 Sep 2015 15:52:13 +0000 (17:52 +0200)
committerSuperBFG7 <daniel@despite.ch>
Sun, 27 Sep 2015 15:52:13 +0000 (17:52 +0200)
add load() before play() for mobile safari

htdocs/index.html
htdocs/js/mpd.js

index d3133e4..deb1926 100644 (file)
@@ -65,7 +65,7 @@
             </div>
           </div>
           
-          <audio id="player" preload="none" src="http://mpd:8000/mpd.ogg"></audio>
+          <audio id="player" preload="none" src="http://mpd:8000/"></audio>
           <div class="btn-group">
             <button type="button" class="btn btn-default" onclick="clickLocalStop()">
               <span id="stop-icon" class="glyphicon glyphicon-stop"></span>
index 97e5a5e..5dc91ad 100644 (file)
@@ -581,7 +581,8 @@ function clickPlay() {
 
 function clickLocalPlay() {
     var player = document.getElementById('player');
-    player.src='http://mpd:8000/mpd.ogg';
+    player.src='http://mpd:8000/';
+    player.load();
     player.play();
     $("#localvolumeslider").slider(player.volume*100);
 }