Skip to content

Commit

Permalink
Issue #ED-0000 merge: Merge pull request #3648 from vpPavithra/releas…
Browse files Browse the repository at this point in the history
…e-6.0.0_v13

Issue #ED-0000 fix:  ecml player download and play for textbook
  • Loading branch information
swayangjit authored Jun 25, 2024
2 parents fd44859 + def9604 commit 73a976b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/services/content/player/content-player-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ declare const cordova;
export class ContentPlayerHandler {
private isPlayerLaunched = false;
private lastPlayedContentId: string;
mimetyes: any = ['application/vnd.ekstep.h5p-archive', 'application/vnd.ekstep.ecml-archive']
constructor(
@Inject('PLAYER_SERVICE') private playerService: PlayerService,
@Inject('COURSE_SERVICE') private courseService: CourseService,
Expand Down Expand Up @@ -177,7 +178,7 @@ export class ContentPlayerHandler {
let isStreaming: boolean;
let shouldDownloadAndPlay: boolean;
if (playingContent.contentData.streamingUrl && this.commonUtilService.networkInfo.isNetworkAvailable &&
(playingContent.mimeType !== 'application/vnd.ekstep.h5p-archive')) { // 1
playingContent.mimeType.includes(this.mimetyes)) { // 1
isStreaming = true;
shouldDownloadAndPlay = false;
} else if (!this.commonUtilService.networkInfo.isNetworkAvailable && playingContent.isAvailableLocally) { // 2
Expand Down

0 comments on commit 73a976b

Please sign in to comment.