-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FEM-1261 #144
FEM-1261 #144
Conversation
gal-orlanczyk
commented
Apr 23, 2017
- Added delayed prepare for ads player decorator.
- Added discard checks for IMAPlugin ads playing to know when to discard ads.
* Renamed 3 properties in `PKAdInfo` according to their naming in IMA SDK to be aligned.
# Conflicts: # Classes/PKStateMachine.swift # Plugins/IMA/AdsEnabledPlayerController.swift # Plugins/IMA/AdsPlugin.swift # Plugins/IMA/IMAConfig.swift # Plugins/IMA/IMAPlugin.swift
guard canPlayAd(forState: currentState) else { return } | ||
self.start(adsManager: adsManager) | ||
if shouldDiscardAd() { | ||
PKLog.debug("discard Ad Break") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@gal-orlanczyk why self.discardAdBreak is no called here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can't discardAdBreak in adBreakReady because no ad have been loaded yet, when we don't call .start() on ad break it is like discarding, if we will call discard here it will discard the next adBreak which is unwanted behavior.