Skip to content

Commit

Permalink
Refine types
Browse files Browse the repository at this point in the history
  • Loading branch information
karpov-kir committed May 15, 2024
1 parent f91ee81 commit 53d7fb8
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/ts/ConvivaAnalytics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import {
SubtitleEvent,
SubtitleTrack,
TimeMode,
AdData,
} from 'bitmovin-player';
import { Html5Http } from './Html5Http';
import { Html5Logging } from './Html5Logging';
Expand Down Expand Up @@ -544,6 +545,7 @@ export class ConvivaAnalytics {
this.convivaAdAnalytics = null;

this.lastSeenBitrate = null;
this.latestAdBreakEvent = null;
};

private resetContentMetadata(): void {
Expand Down Expand Up @@ -702,7 +704,16 @@ export class ConvivaAnalytics {

const adPosition = AdBreakHelper.mapAdPosition(this.latestAdBreakEvent.adBreak, this.player);

const adData = event.ad.data as any;
const adData = event.ad.data as undefined | (
AdData & {
adSystem?: {
name: string;
}
creative?: {
id: string
}
}
);

const adInfo = {
'c3.ad.technology': Conviva.Constants.AdType.CLIENT_SIDE,
Expand Down

0 comments on commit 53d7fb8

Please sign in to comment.