fixes for recording related errors
This commit is contained in:
parent
f392623049
commit
9d787351fa
|
|
@ -61,14 +61,14 @@
|
|||
$('#recording-finished-dialog span.nowait').removeClass('hidden')
|
||||
$('#recording-finished-dialog .preview-area').css('visibility', 'visible')
|
||||
$('#recording-finished-dialog form').css('visibility', 'visible')
|
||||
launchPreview();
|
||||
await launchPreview();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
function waitForMixTransfer() {
|
||||
timeout = setTimeout(function() {
|
||||
timeout = setTimeout(async function() {
|
||||
console.log("checking for file transfer", window.RecordingStore.mixTransferred)
|
||||
|
||||
if(window.RecordingStore.mixTransferred) {
|
||||
|
|
@ -77,7 +77,7 @@
|
|||
$('#recording-finished-dialog .preview-area').css('visibility', 'visible')
|
||||
$('#recording-finished-dialog form').css('visibility', 'visible')
|
||||
timeout = null
|
||||
launchPreview()
|
||||
await launchPreview()
|
||||
}
|
||||
else {
|
||||
waitForMixTransfer();
|
||||
|
|
|
|||
|
|
@ -43,7 +43,8 @@
|
|||
paginator.data('working', true);
|
||||
|
||||
onPageSelected(targetPage)
|
||||
.done(function(data, textStatus, jqXHR) {
|
||||
.then(function(resp) {
|
||||
const [data, textStatus, jqXHR] = resp;
|
||||
totalEntries = data.total_entries || parseInt(jqXHR.getResponseHeader('total-entries'));
|
||||
pages = calculatePages(totalEntries, perPage);
|
||||
options = { pages: pages,
|
||||
|
|
@ -54,10 +55,15 @@
|
|||
registerEvents(newPaginator);
|
||||
paginator.replaceWith(newPaginator);
|
||||
paginator = newPaginator;
|
||||
|
||||
paginator.data('working', false);
|
||||
})
|
||||
.always(function() {
|
||||
.catch(function(){
|
||||
paginator.data('working', false);
|
||||
});
|
||||
// .always(function() {
|
||||
// paginator.data('working', false);
|
||||
// });
|
||||
}
|
||||
else {
|
||||
|
||||
|
|
|
|||
|
|
@ -485,9 +485,8 @@ ConfigureTracksActions = @ConfigureTracksActions
|
|||
"icon_url": "/assets/content/icon_alert_big.png"
|
||||
});
|
||||
});
|
||||
|
||||
const resp = await context.jamClient.CloseRecording();
|
||||
console.log('CloseRecoding...', resp)
|
||||
|
||||
await context.jamClient.CloseRecording();
|
||||
}`
|
||||
|
||||
# closeMetronomeTrack:() ->
|
||||
|
|
|
|||
|
|
@ -112,12 +112,14 @@
|
|||
|
||||
/** Nulls can be passed for all 3 currently; that's a user request. */
|
||||
function stopRecording(recordingId, reason, detail) {
|
||||
|
||||
if(stoppingRecording) {
|
||||
logger.debug("ignoring stopRecording because we are already stopping");
|
||||
return;
|
||||
}
|
||||
stoppingRecording = true;
|
||||
|
||||
|
||||
waitingOnServerStop = waitingOnClientStop = true;
|
||||
waitingOnStopTimer = setTimeout(timeoutTransitionToStop, 5000);
|
||||
|
||||
|
|
@ -129,13 +131,13 @@
|
|||
currentRecording
|
||||
.then(async function(recording) {
|
||||
var groupedTracks = groupTracksToClient(recording);
|
||||
|
||||
//if(sessionModel.jamTracks() && isRecording()) {
|
||||
// logger.debug("preemptive stop media")
|
||||
//context.jamClient.SessionStopPlay();
|
||||
//}
|
||||
logger.debug("calling jamClient.StopRecording", recording.id, groupedTracks)
|
||||
var recResp = await jamClient.StopRecording(recording.id, groupedTracks);
|
||||
logger.debug("jamClient.StopRecording response", recResp)
|
||||
await jamClient.StopRecording(recording.id, groupedTracks);
|
||||
|
||||
rest.stopRecording( { "id": recording.id } )
|
||||
.done(function() {
|
||||
waitingOnServerStop = false;
|
||||
|
|
|
|||
Loading…
Reference in New Issue