Skip to content

Commit

Permalink
PLAT-11092: reset redirect only if asked specifically (#632)
Browse files Browse the repository at this point in the history
  • Loading branch information
david-winder-kaltura authored Aug 3, 2020
1 parent 68d73d9 commit 4202982
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/BackendClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,7 @@ var BackendClient = (function(){
});
};

BackendClient.resetRecordingEntry = function(entryObj, allowRecordedEntryCreation = true, resetRedirect = true) {
BackendClient.resetRecordingEntry = function(entryObj, allowRecordedEntryCreation = true, resetRedirect = false) {
logger.debug(`[${entryObj.entryId}] reset recordedEntryId`);
return createSession()
.then(()=> {
Expand Down
6 changes: 3 additions & 3 deletions lib/recording/RecordingManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ class RecordingManager {
}
if (isRecordingFinish(element)) {
const resetRecordedEntryId = (element.entryObject.recordStatus != kalturaTypes.KalturaRecordStatus.APPENDED);
this.stopRecording(entryId, resetRecordedEntryId, false);
this.stopRecording(entryId, resetRecordedEntryId);
}
});
logger.info("Available recording entry: %j", _.keys(this.recordingList));
Expand Down Expand Up @@ -321,7 +321,7 @@ class RecordingManager {
})
}

stopRecording(entryId, resetRecordedEntry = false, resetRedirect = true) {
stopRecording(entryId, resetRecordedEntry = false) {
if (this.recordingList[entryId]) {
let recordingEntrySession = this.recordingList[entryId];
if (!recordingEntrySession) {
Expand Down Expand Up @@ -378,7 +378,7 @@ class RecordingManager {
if (resetRecordedEntry && (entryObject.serverType == kalturaTypes.KalturaEntryServerNodeType.LIVE_PRIMARY))
{
recordingEntrySession.updateEntryDuration(true).then(()=>{
backendClient.resetRecordingEntry(entryObject, false, resetRedirect);
backendClient.resetRecordingEntry(entryObject, false);
});
}
return qio.write(doneFilePath, 'done');
Expand Down

0 comments on commit 4202982

Please sign in to comment.