SAAS-821: Wire up new player bar with muses
Play and stop is working
This commit is contained in:
parent
8f8b0b7f4d
commit
911c168765
|
@ -237,6 +237,18 @@
|
||||||
document.getElementById("stop_button").classList.toggle("hide_button");
|
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
|
// variables for updating the player's metadata
|
||||||
var time_to_next_track_starts = 0;
|
var time_to_next_track_starts = 0;
|
||||||
var metadataTimer = null;
|
var metadataTimer = null;
|
||||||
|
@ -343,9 +355,7 @@
|
||||||
|
|
||||||
<div id="premium_player" style="display:block;">
|
<div id="premium_player" style="display:block;">
|
||||||
<div class="bottom_bar">
|
<div class="bottom_bar">
|
||||||
<div class="play cont_btn">
|
<div class="play cont_btn"></div>
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="on_air">
|
<div class="on_air">
|
||||||
<p>Bob Marley
|
<p>Bob Marley
|
||||||
|
|
|
@ -46,10 +46,6 @@
|
||||||
$(this).addClass('current');
|
$(this).addClass('current');
|
||||||
$("#"+tab_id).addClass('current');
|
$("#"+tab_id).addClass('current');
|
||||||
});
|
});
|
||||||
|
|
||||||
$("#player_iframe").contents().find(".play").click(function(){
|
|
||||||
$(this).toggleClass("pause");
|
|
||||||
});
|
|
||||||
}, 1000);
|
}, 1000);
|
||||||
|
|
||||||
// schedule widget tabs
|
// schedule widget tabs
|
||||||
|
|
Loading…
Reference in New Issue