SAAS-821: Wire up new player bar with muses

Play and stop is working
This commit is contained in:
drigato 2015-05-29 09:14:23 -04:00
parent 8f8b0b7f4d
commit 911c168765
2 changed files with 13 additions and 7 deletions

View file

@ -237,6 +237,18 @@
document.getElementById("stop_button").classList.toggle("hide_button");
}
$(document).ready(function() {
$(".play").click(function () {
if ($(this).hasClass("pause")) {
musesPlayer.stop();
} else {
musesPlayer.play();
}
$(this).toggleClass("pause");
});
});
// variables for updating the player's metadata
var time_to_next_track_starts = 0;
var metadataTimer = null;
@ -343,9 +355,7 @@
<div id="premium_player" style="display:block;">
<div class="bottom_bar">
<div class="play cont_btn">
</div>
<div class="play cont_btn"></div>
<div class="on_air">
<p>Bob Marley