From 05cdfb05cddb0cab998207006dbcf2f003434c8f Mon Sep 17 00:00:00 2001 From: Yair Ansbacher Date: Thu, 16 May 2019 11:23:43 +0300 Subject: [PATCH] fix: add the ad system to the ad event payload (#11) add `system` to the ad event payload Depends on https://github.com/kaltura/playkit-js/pull/362 --- src/ima-dai.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ima-dai.js b/src/ima-dai.js index 47d5919..20a37e9 100644 --- a/src/ima-dai.js +++ b/src/ima-dai.js @@ -553,9 +553,10 @@ class ImaDAI extends BasePlugin implements IAdsControllerProvider, IEngineDecora const ad = event.getAd(); if (ad) { const podInfo = ad.getAdPodInfo(); + adOptions.system = ad.getAdSystem(); adOptions.duration = ad.getDuration(); - adOptions.position = podInfo.getAdPosition(); adOptions.title = ad.getTitle(); + adOptions.position = podInfo.getAdPosition(); } adOptions.linear = true; return adOptions;