* VRFS-2605 - automatically stop recording if jamtrack is playing
This commit is contained in:
parent
3181a67bda
commit
67c9f5d891
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue