1
0
mirror of https://github.com/SuperBFG7/ympd synced 2025-01-09 17:00:36 +00:00

removed filename to not depend on the format mpd is streaming

add load() before play() for mobile safari
This commit is contained in:
SuperBFG7 2015-09-27 17:52:13 +02:00
parent 0b2c69c281
commit cb82047228
2 changed files with 3 additions and 2 deletions

View File

@ -65,7 +65,7 @@
</div> </div>
</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"> <div class="btn-group">
<button type="button" class="btn btn-default" onclick="clickLocalStop()"> <button type="button" class="btn btn-default" onclick="clickLocalStop()">
<span id="stop-icon" class="glyphicon glyphicon-stop"></span> <span id="stop-icon" class="glyphicon glyphicon-stop"></span>

View File

@ -581,7 +581,8 @@ function clickPlay() {
function clickLocalPlay() { function clickLocalPlay() {
var player = document.getElementById('player'); var player = document.getElementById('player');
player.src='http://mpd:8000/mpd.ogg'; player.src='http://mpd:8000/';
player.load();
player.play(); player.play();
$("#localvolumeslider").slider(player.volume*100); $("#localvolumeslider").slider(player.volume*100);
} }