* VRFS-3043 - pass along preview timeline data in preview

This commit is contained in:
Seth Call 2015-04-17 15:01:56 -05:00
parent a2e5d941c1
commit 1809b0213b
4 changed files with 15 additions and 8 deletions

View File

@ -1448,7 +1448,6 @@
}
function getJamTracks(options) {
logger.debug("GETTING JAMTRACKS")
return $.ajax({
type: "GET",
url: '/api/jamtracks?' + $.param(options),

View File

@ -416,7 +416,7 @@
}
else {
displayDoneRecording();
promptUserToSave(data.recordingId);
promptUserToSave(data.recordingId, timeline);
}
})
@ -545,10 +545,12 @@
function checkJamTrackTransition(currentSession) {
// handle jam tracks
if (jamTrack == null && (currentSession && currentSession.jam_track != null)) {
// if we have a recording open, then don't go into JamTrack monitor mode even if a JamTrack is open
if (jamTrack == null && (currentSession && currentSession.jam_track != null && currentSession.claimed_recording == null)) {
playbackControls.startMonitor(context.JK.PLAYBACK_MONITOR_MODE.JAMTRACK);
}
else if (jamTrack && (currentSession == null || currentSession.jam_track == null)) {
else if (jamTrack && (currentSession == null || (currentSession.jam_track == null && currentSession.claimed_recording == null))) {
playbackControls.stopMonitor();
}
jamTrack = currentSession == null ? null : currentSession.jam_track;
@ -725,7 +727,7 @@
masterMixers = context.jamClient.SessionGetAllControlState(true);
personalMixers = context.jamClient.SessionGetAllControlState(false);
logger.debug("masterMixers", masterMixers)
//logger.debug("masterMixers", masterMixers)
//logger.debug("personalMixers", personalMixers)
mixersByResourceId = {}
@ -2578,9 +2580,10 @@
}
}
function promptUserToSave(recordingId) {
function promptUserToSave(recordingId, timeline) {
rest.getRecording( {id: recordingId} )
.done(function(recording) {
recording.timeline = timeline.global
recordingFinishedDialog.setRecording(recording);
app.layout.showDialog('recordingFinished').one(EVENTS.DIALOG_CLOSED, function(e, data) {
if(data.result && data.result.keep){
@ -2592,7 +2595,7 @@
}
function checkPendingMetronome() {
logger.debug("checkPendingMetronome", sessionModel.isMetronomeOpen(), getMetronomeMasterMixers().length)
//logger.debug("checkPendingMetronome", sessionModel.isMetronomeOpen(), getMetronomeMasterMixers().length)
if(sessionModel.isMetronomeOpen() && getMetronomeMasterMixers().length == 0) {
var pendingMetronome = $($templatePendingMetronome.html())

View File

@ -31,7 +31,7 @@
left: 15%;
font-size: 12px;
padding-top:5px;
z-index:-1;
z-index:0;
a {
margin:0 10px;

View File

@ -20,6 +20,11 @@
position:absolute;
}
.jam-track-get-ready {
display:none;
}
.icheckbuttons {
margin-top:20px;
}