1
0
mirror of https://github.com/SuperBFG7/ympd synced 2024-11-15 02:14:48 +00:00
ympd/htdocs/js/player.js

6 lines
184 B
JavaScript
Raw Normal View History

2018-07-02 06:59:13 +00:00
var player = document.getElementById('player');
player.src = decodeURI(location.hash).replace(/^#/,'');
console.log('playing mpd stream: ' + player.src);
player.load();
player.play();