mirror of
https://github.com/SuperBFG7/ympd
synced 2025-01-09 00:40:35 +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:
parent
0b2c69c281
commit
cb82047228
@ -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>
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user