VRFS-5653 - fix Music/Chat slider

This commit is contained in:
Seth Call 2025-08-02 11:04:46 -05:00
parent 80010723ca
commit f755e2b0a0
2 changed files with 10 additions and 8 deletions

View File

@ -972,9 +972,11 @@ MIX_MODES = context.JK.MIX_MODES;
} else {
controlGroupsArg = 1;
}
await context.jamClient.setSessionMixerCategoryPlayoutState(controlGroup === 'music', controlGroupsArg);
//console.log("setSessionMixerCategoryPlayoutState", controlGroup, controlGroupsArg, context.trackVolumeObject.volL)
await context.jamClient.setSessionMixerCategoryPlayoutState(controlGroup === 'music', controlGroupsArg, context.trackVolumeObject.volL);
} else {
//await context.jamClient.SessionSetControlState(mixer.id, mixer.mode);
//console.log("SessionSetTrackVolumeData", mixer.id, mixer.mode, context.trackVolumeObject)
await context.jamClient.SessionSetTrackVolumeData(mixer.id, mixer.mode, context.trackVolumeObject);
}
}`

View File

@ -2187,6 +2187,9 @@ ConfigureTracksActions = @ConfigureTracksActions
});*/
await self.performLeaveSession(deferred);
}
else {
console.log("SessionModel:leaveSession() - skip.", this.joinDeferred == null, this.isJoinDeferredResolved);
}
}`
# performLeaveSession: (deferred) ->
@ -2216,22 +2219,19 @@ ConfigureTracksActions = @ConfigureTracksActions
# @issueChange()
performLeaveSession: `async function(deferred) {
logger.debug("SessionModel.leaveCurrentSession()");
logger.debug("performLeaveSession: calling jamClient.LeaveSession for clientId=" + this.app.clientId);
logger.debug('before context.jamClient.LeaveSession')
console.log("performLeaveSession: calling jamClient.LeaveSession for sessionId=" + this.currentSessionId);
await context.jamClient.LeaveSession({ sessionID: this.currentSessionId });
logger.debug('before leaveSessionRest')
this.leaveSessionRest(this.currentSessionId)
.done(function() {
session = this.getCurrentOrLastSession();
context.SessionStore.updateSessionInfo(session, true)
logger.debug('leaveSessionRest done')
console.log('leaveSessionRest done')
deferred.resolve(arguments[0], arguments[1], arguments[2]);}.bind(this))
.fail(function() {
logger.debug('leaveSessionRest fail')
console.log('leaveSessionRest fail')
deferred.reject(arguments[0], arguments[1], arguments[2]);
}.bind(this));