Skip to content

Commit

Permalink
Merge pull request #3562 from sujithsojan/release-7.0.0_h
Browse files Browse the repository at this point in the history
Issue #ED-3449 fix: User is not able to consume v2 questionset-online
  • Loading branch information
swayangjit authored Feb 29, 2024
2 parents e5177c0 + 7d63c27 commit 7e20ad0
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions src/app/player/player.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,22 @@ export class PlayerPage implements OnInit, OnDestroy, PlayerActionHandlerDelegat
this.config['config'].sideMenu.showDownload = false;
this.config['config'].sideMenu.showPrint = false;
this.config['config'].showDeviceOrientation = true
this.config['metadata']['children'] = (await this.contentService.getQuestionSetChildren(this.config['metadata']['identifier']))
this.playerType = 'sunbird-quml-player';
await this.playQumlContent();
const questionSetData = await this.contentService.getQuestionSetChildren(this.config['metadata']['identifier']);
let questionId: string[] = [];
questionSetData.forEach(item => {
if (item.children) {
item.children.forEach(child => {
if (child.identifier) {
questionId.push(child.identifier);
}
});
}
});
this.contentService.getQuestionList(questionId).subscribe((response) => {
this.config['metadata']['children'] = response.questions;
this.playerType = 'sunbird-quml-player';
this.playQumlContent();
});
} else if(["video/mp4", "video/webm"].includes(this.config['metadata']['mimeType']) && this.checkIsPlayerEnabled(this.playerConfig , 'videoPlayer').name === "videoPlayer"){
if(!this.platform.is('ios')){
await this.screenOrientation.lock(this.screenOrientation.ORIENTATIONS.LANDSCAPE);
Expand Down

0 comments on commit 7e20ad0

Please # to comment.