Web radio
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
radio/js/audio.js

24 lines
531 B

5 years ago
var stream_url = 'http://stream.santic-zombie.ru';
var audio = new Audio(stream_url);
audio.volume = 0.01;
var play = document.getElementById('play');
play.addEventListener('click', function() {
5 years ago
$("#PlayStat").text("Now playing");
audio.play();
}, false);
var pause = document.getElementById('pause');
pause.addEventListener('click', function() {
5 years ago
$("#PlayStat").text("Paused");
audio.pause();
}, false);
$("#volume").mousemove(function(){
audio.volume = parseFloat(this.value / 10);
});
5 years ago
//audio.muted = true;