Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
karpov-kir committed May 14, 2024
1 parent ee0566b commit c4a9132
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 12 deletions.
3 changes: 2 additions & 1 deletion @types/conviva/ConvivaExtension.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/**
* Add missing types from `conviva-core-sdk` package.
* The following properties exist on the `window.Conviva` object but they are missing
* in types of `conviva-core-sdk` package for some reason, so let's add them manually.
*/

declare module Conviva {
Expand Down
2 changes: 0 additions & 2 deletions spec/tests/PlayerEvents.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,6 @@ describe('player event tests', () => {
expect(convivaVideoAnalytics.reportAdBreakStarted).toHaveBeenCalledWith(
Conviva.Constants.AdType.CLIENT_SIDE,
Conviva.Constants.AdPlayer.SEPARATE,
Conviva.Constants.AdPosition.PREROLL,
);
});

Expand All @@ -251,7 +250,6 @@ describe('player event tests', () => {
expect(convivaVideoAnalytics.reportAdBreakStarted).toHaveBeenCalledWith(
Conviva.Constants.AdType.CLIENT_SIDE,
Conviva.Constants.AdPlayer.SEPARATE,
Conviva.Constants.AdPosition.MIDROLL,
);
});

Expand Down
9 changes: 0 additions & 9 deletions src/ts/ConvivaAnalytics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,6 @@ export class ConvivaAnalytics {
this.convivaVideoAnalytics.reportAdBreakStarted(
Conviva.Constants.AdType.CLIENT_SIDE,
Conviva.Constants.AdPlayer.SEPARATE,
// Conviva.Constants.AdPosition.PREROLL,
);
this.debugLog('Tracking paused.');
}
Expand Down Expand Up @@ -693,14 +692,9 @@ export class ConvivaAnalytics {
return;
}

this.debugLog('[ ConvivaAnalytics ] report ad break started', {
event,
adPosition,
});
this.convivaVideoAnalytics.reportAdBreakStarted(
Conviva.Constants.AdType.CLIENT_SIDE,
Conviva.Constants.AdPlayer.SEPARATE,
// adPosition,
);
};

Expand All @@ -713,9 +707,6 @@ export class ConvivaAnalytics {
return;
}

this.debugLog('[ ConvivaAnalytics ] report ad break ended', {
event,
});
this.convivaVideoAnalytics.reportAdBreakEnded();
this.convivaVideoAnalytics.reportPlaybackMetric(
Conviva.Constants.Playback.PLAYER_STATE,
Expand Down

0 comments on commit c4a9132

Please sign in to comment.