Skip to content

Commit

Permalink
feat: use playkit ads interface (#273)
Browse files Browse the repository at this point in the history
As part of ads refactoring in the playkit core, use new ads interface in the UI.
  • Loading branch information
Dan Ziv authored and yairans committed Sep 13, 2018
1 parent 933fac6 commit 8145949
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/components/engine-connector/engine-connector.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,10 +187,11 @@ class EngineConnector extends BaseComponent {
});

this.eventManager.listen(this.player, this.player.Event.AD_LOADED, e => {
this.props.updateAdIsLinear(e.payload.ad.isLinear());
this.props.updateAdClickUrl(e.payload.ad.g.clickThroughUrl);
this.props.updateAdSkipTimeOffset(e.payload.ad.getSkipTimeOffset());
this.props.updateAdSkippableState(e.payload.ad.getAdSkippableState());
const ad = e.payload.ad;
this.props.updateAdIsLinear(ad.linear);
this.props.updateAdClickUrl(ad.clickThroughUrl);
this.props.updateAdSkipTimeOffset(ad.skipOffset);
this.props.updateAdSkippableState(ad.skippable);
});

this.eventManager.listen(this.player, this.player.Event.VR_STEREO_MODE_CHANGED, e => {
Expand Down

0 comments on commit 8145949

Please sign in to comment.