From 04a0c70fd2c0e4686975bbefd62ad16af267adc0 Mon Sep 17 00:00:00 2001 From: Kirill Karpov Date: Wed, 15 May 2024 10:30:22 +0400 Subject: [PATCH] Remove custom metadata --- @types/conviva/ConvivaExtension.d.ts | 2 -- src/ts/ContentMetadataBuilder.ts | 9 +-------- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/@types/conviva/ConvivaExtension.d.ts b/@types/conviva/ConvivaExtension.d.ts index 44b267c..5334756 100644 --- a/@types/conviva/ConvivaExtension.d.ts +++ b/@types/conviva/ConvivaExtension.d.ts @@ -15,8 +15,6 @@ declare module Conviva { public streamType: Conviva.valueof; public streamUrl: string; public viewerId: string; - public frameworkVersion: string; - public framework: string; } interface LoggingInterface { diff --git a/src/ts/ContentMetadataBuilder.ts b/src/ts/ContentMetadataBuilder.ts index 7b728a0..938b958 100644 --- a/src/ts/ContentMetadataBuilder.ts +++ b/src/ts/ContentMetadataBuilder.ts @@ -71,8 +71,6 @@ export class ContentMetadataBuilder { this.contentMetadata.streamType = this.metadataOverrides.streamType || this.metadata.streamType; this.contentMetadata.applicationName = this.metadataOverrides.applicationName || this.metadata.applicationName; this.contentMetadata.duration = this.metadataOverrides.duration || this.metadata.duration; - this.contentMetadata.framework = this.metadataOverrides.framework || this.metadata.framework; - this.contentMetadata.frameworkVersion = this.metadataOverrides.frameworkVersion || this.metadata.frameworkVersion; this.contentMetadata.custom = this.custom; } @@ -91,15 +89,10 @@ export class ContentMetadataBuilder { [Conviva.Constants.VIEWER_ID]: this.contentMetadata.viewerId || 'GET_VIEWER_ID_FROM_PLAYER', [Conviva.Constants.PLAYER_NAME]: this.contentMetadata.applicationName || 'GET_PLAYER_NAME_OR_TYPE', }; - const customContentInfo: CustomContentMetadata = { - [Conviva.Constants.FRAMEWORK_NAME]: this.contentMetadata.framework, - [Conviva.Constants.FRAMEWORK_VERSION]: this.contentMetadata.frameworkVersion, - ...this.contentMetadata.custom, - }; return { ...convivaContentInfo, - ...customContentInfo, + ...this.contentMetadata.custom, } as Conviva.ConvivaMetadata; }