* VRFS-2605 - automatically stop recording if jamtrack is playing

This commit is contained in:
Seth Call 2015-04-21 16:34:57 -05:00
parent 3181a67bda
commit 67c9f5d891
1 changed files with 6 additions and 1 deletions

View File

@ -2889,7 +2889,7 @@
}
function closeBackingTrack() {
if (sessionModel.recordingModel.isRecording()) {
logger.debug("can't close backing track while recording")
return false;
@ -2991,6 +2991,11 @@
function onPause(e, data) {
logger.debug("calling jamClient.SessionStopPlay. endReached:", data.endReached);
// if a JamTrack is open, and the user hits 'pause', we need to automatically stop the recording
if(sessionModel.jamTracks() && sessionModel.recordingModel.isRecording()) {
startStopRecording();
}
if(!data.endReached) {
context.jamClient.SessionStopPlay();
}