From f121a23dd99b30a6e136c4641db45efa5eebb546 Mon Sep 17 00:00:00 2001 From: Rajnish Dargan Date: Thu, 15 Feb 2024 15:41:25 +0530 Subject: [PATCH] Issue #IQ-679 fix: Alternative fix for IQ-567 Telemetry Error --- projects/quml-library/src/lib/player-constants.ts | 4 +++- .../src/lib/section-player/section-player.component.ts | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/projects/quml-library/src/lib/player-constants.ts b/projects/quml-library/src/lib/player-constants.ts index 33757afc..7b453086 100644 --- a/projects/quml-library/src/lib/player-constants.ts +++ b/projects/quml-library/src/lib/player-constants.ts @@ -3,4 +3,6 @@ export const DEFAULT_SCORE: number = 1; export const WARNING_TIME_CONFIG = { DEFAULT_TIME : 75, SHOW_TIMER: true -} \ No newline at end of file +} + +export const COMPATABILITY_LEVEL: number = 6; \ No newline at end of file diff --git a/projects/quml-library/src/lib/section-player/section-player.component.ts b/projects/quml-library/src/lib/section-player/section-player.component.ts index df59204c..a4130c58 100644 --- a/projects/quml-library/src/lib/section-player/section-player.component.ts +++ b/projects/quml-library/src/lib/section-player/section-player.component.ts @@ -7,7 +7,7 @@ import { takeUntil } from 'rxjs/operators'; import { QumlPlayerConfig, IParentConfig, IAttempts } from '../quml-library-interface'; import { ViewerService } from '../services/viewer-service/viewer-service'; import { eventName, pageId, TelemetryType, Cardinality, QuestionType } from '../telemetry-constants'; -import { DEFAULT_SCORE } from '../player-constants'; +import { DEFAULT_SCORE, COMPATABILITY_LEVEL } from '../player-constants'; import { UtilService } from '../util-service'; @Component({ @@ -91,7 +91,7 @@ export class SectionPlayerComponent implements OnChanges, AfterViewInit { isAssessEventRaised = false; isShuffleQuestions = false; shuffleOptions: boolean; - playerContentCompatibiltyLevel = 6; + playerContentCompatibiltyLevel = COMPATABILITY_LEVEL; constructor( public viewerService: ViewerService,