Skip to content

Commit

Permalink
Issue #ED-4228 merge: Merge pull request #3623 from vpPavithra/releas…
Browse files Browse the repository at this point in the history
…e-7.0.0

Issue #ED-4228 fix: quml player max attempt fix
  • Loading branch information
swayangjit authored May 22, 2024
2 parents ecd9075 + 1a5085e commit 47dc28e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/app/player/player.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ export class PlayerPage implements OnInit, OnDestroy, PlayerActionHandlerDelegat
await this.toggleDeviceOrientation();
}
}
else if (event.detail) {
else if (event.detail) { // only for quml player
const userId: string = this.appGlobalService.getCurrentUser().uid;
const parentId: string = (this.content.rollup && this.content.rollup.l1) ? this.content.rollup.l1 : this.content.identifier;
const contentId: string = this.content.identifier;
Expand All @@ -400,8 +400,10 @@ export class PlayerPage implements OnInit, OnDestroy, PlayerActionHandlerDelegat
};
await this.commonUtilService.handleAssessmentStatus(attemptInfo);
}
} else if (event.detail.edata['type'] === 'END' && this.config['metadata']['mimeType'] === "application/vnd.sunbird.questionset") {
this.courseService.syncAssessmentEvents().subscribe();
}
else if(event.detail.edata['type'] === 'EXIT') {
else if(event.detail.edata['type'] === 'EXIT') {
this.playerService.deletePlayerSaveState(userId, parentId, contentId);
if (this.config['metadata']['mimeType'] === "application/vnd.sunbird.questionset") {
if (!this.isExitPopupShown) {
Expand Down

0 comments on commit 47dc28e

Please sign in to comment.