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

Config API change and PKPlugin #78

Merged
5 commits merged into from
Feb 6, 2017
Merged

Config API change and PKPlugin #78

5 commits merged into from
Feb 6, 2017

Conversation

ghost
Copy link

@ghost ghost commented Feb 4, 2017

  • changed PlayKitManager sharedInstance to shared in swift (in objective-c it is still sharedInstance), much more swifter.
  • separated PlayerConfig to MediaConfig that will be used for preparing the player and PluginConfig that will be used for loading the player.
    Also created a PlayerConfig object as a composition for MediaConfig and PluginConfig.
  • changed player’s prepare to receive MediaConfig instead of player config.
  • changed player duration from double to TimeInterval (time interval is also a double but make more sense for duration to be time related).
  • PlayerLoader now loads the plugin media entry when prepare is called and loader.load method just initializes the plugin.
  • PKPlugin was added mediaEntry property and onLoad + onUpdateMedia methods to enable media entry changes and loading.
  • Fixed Youbora manager get player version, was returning same version, now returns the real version.
  • Fixed issue where Youbora plugin could crash if media entry was nil.

noamtamim and others added 2 commits February 1, 2017 12:52
* changed PlayKitManager sharedInstance to shared in swift (in objective-c it is still sharedInstance), much more swifter.
* separated `PlayerConfig` to `MediaConfig` that will be used for preparing the player and `PluginConfig` that will be used for loading the player.
Also created a `PlayerConfig` object as a composition for `MediaConfig` and `PluginConfig`.
* changed player’s prepare to receive `MediaConfig` instead of player config.
* changed player duration from double to TimeInterval (time interval is also a double but make more sense for duration to be time related).
* `PlayerLoader` now loads the plugin media entry when prepare is called and loader.load method just initializes the plugin.
* PKPlugin was added `mediaEntry` property and `onLoad` + `onUpdateMedia` methods to enable media entry changes and loading.
* Fixed Youbora manager get player version, was returning same version, now returns the real version.
* Fixed issue where Youbora plugin could crash if media entry was nil.
@ghost ghost assigned ElizaSapir and OrenMe Feb 4, 2017
@ghost ghost requested a review from noamtamim February 4, 2017 16:05
There was a issue that PlayerController, PlayerLoader, AVPlayerEngine and messageBus wasn’t released and in some cases caused retain cycles.
This was caused because plugins held strong reference to player and messageBus objects and onEventBlock was creating reference cycle when pointing back to loader.

* Fixed player memory leaks.
* Fixed deinit in AVPlayerEngine, now calls destroy only when object wasn’t destroyed manually.
@ghost ghost merged commit 518d389 into develop Feb 6, 2017
@ghost ghost deleted the config-api branch February 6, 2017 13:53
srivkas added a commit that referenced this pull request Feb 20, 2017
…EM-831-Changes

* commit '6965fe817fe14075b66413ba27e7072c60d699d9': (65 commits)
  Simple OVP Session Provider (#90)
  #FEM-1117 (#88)
  #FEC-6462 #comment [~oren.melamed], do we know this issue doesn’t happen for Phoenix too? If you could get me a response sample for concurrency I could check. (#87)
  Added initObj key to the media mark request. It was missing. (#84)
  fix podspec
  Fec 6473 (#86)
  Small enhancement to player config (#82)
  Fixes memory leak created by Apple’s interoperability (#85)
  Update README.md
  Fix to prevent initializing `PlayKitManager` from outside in swift and objc (#81)
  Some tweaks for objective-c compatibility (#80)
  fixed issue with `KalturaLiveStatsPlugin` conforming to PKPlugin (#79)
  support wideinve privae pod
  Config API change and PKPlugin (#78)
  LocalAssetsManager: rename registerDownloadedAsset to assetDownloadFinished. (#77)
  bump v0.1.9
  fix event observation on KalturaLiveStatsPlugin
  fix issues with tests after events change. (#74)
  bump v0.1.8
  update podfile
  ...

# Conflicts:
#	Example/PlayKit.xcodeproj/project.pbxproj
#	Example/Podfile
#	Example/Podfile.lock
#	Example/Tests/MediaEntryProvider/OVPMediaProviederTest.swift
This pull request was closed.
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.

None yet

4 participants