|
@@ -949,6 +949,28 @@ Template.stations.events({
|
|
_sound.stop();
|
|
_sound.stop();
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ "click #forward": function() {
|
|
|
|
+ if (yt_player !== undefined) {
|
|
|
|
+ yt_player.seekTo(Session.get("song").duration - 10);
|
|
|
|
+ }
|
|
|
|
+ if (_sound !== undefined) {
|
|
|
|
+ _sound.seekTo((Session.get("song").duration - 10) * 1000);
|
|
|
|
+ }
|
|
|
|
+ if (previewEndSongTimeout !== undefined) {
|
|
|
|
+ Meteor.clearTimeout(previewEndSongTimeout);
|
|
|
|
+ }
|
|
|
|
+ Meteor.setTimeout(function() {
|
|
|
|
+ if (yt_player !== undefined) {
|
|
|
|
+ yt_player.stopVideo();
|
|
|
|
+ }
|
|
|
|
+ if (_sound !== undefined) {
|
|
|
|
+ _sound.stop();
|
|
|
|
+ }
|
|
|
|
+ $("#play").attr("disabled", false);
|
|
|
|
+ $("#stop").attr("disabled", true);
|
|
|
|
+ $("#previewPlayer").hide();
|
|
|
|
+ }, 10000);
|
|
|
|
+ },
|
|
"click #croom_create": function() {
|
|
"click #croom_create": function() {
|
|
Meteor.call("createRoom", $("#croom_display").val(), $("#croom_tag").val(), function (err, res) {
|
|
Meteor.call("createRoom", $("#croom_display").val(), $("#croom_tag").val(), function (err, res) {
|
|
if (err) {
|
|
if (err) {
|