Skip to content
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

Merged
merged 5 commits into from
Apr 24, 2017
Merged

FEM-1261 #144

merged 5 commits into from
Apr 24, 2017

Conversation

gal-orlanczyk
Copy link
Contributor

  • Added delayed prepare for ads player decorator.
  • Added discard checks for IMAPlugin ads playing to know when to discard ads.

Gal Orlanczyk added 5 commits April 17, 2017 10:55
* Added timeout handling for `IMAPlugin`.
* Added state machine for `IMAPlugin` for better handling of state changes and readability.
* Renamed `AdsConfig` to `IMAConfig`
* Added `enableDebugMode` for `IMAConfig` for better debug handling in IMA.
* Renamed 3 properties in `PKAdInfo` according to their naming in IMA SDK to be aligned.
* Added delayed prepare for ads player decorator.
* Added discard checks for IMAPlugin ads playing to know when to discard ads.
# 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")

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?

Copy link
Contributor Author

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.

@gal-orlanczyk gal-orlanczyk merged commit e0110a5 into develop Apr 24, 2017
@gal-orlanczyk gal-orlanczyk deleted the FEM-1261 branch April 24, 2017 08:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants