Skip to content

Commit

Permalink
feat(FEC-8751): add support for ima playAdsAfterTime setting (#201)
Browse files Browse the repository at this point in the history
remove skipping ads on cast disconnect, as is already handled in kaltura/playkit-js-ima#87 according the `startTime` configuration.
  • Loading branch information
yairans committed Jan 14, 2019
1 parent 7f4c515 commit f4c243d
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/common/cast/remote-control.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,11 +199,7 @@ function reconstructPlayerComponents(snapshot: PlayerSnapshot): void {
} else {
imaConfig = {
// Needs to wait for engine to create the new ads container
delayInitUntilSourceSelected: true,
adsRenderingSettings: {
// We don't want to play ads that already played in the receiver
playAdsAfterTime: snapshot.config.playback.startTime
}
delayInitUntilSourceSelected: true
};
}
Utils.Object.mergeDeep(playerConfig, {plugins: {ima: imaConfig}});
Expand Down

0 comments on commit f4c243d

Please sign in to comment.