-
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
Config API change and PKPlugin #78
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This is just the beginning.
* 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.
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.
…izing singleton object.
ElizaSapir
approved these changes
Feb 6, 2017
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PlayerConfig
toMediaConfig
that will be used for preparing the player andPluginConfig
that will be used for loading the player.Also created a
PlayerConfig
object as a composition forMediaConfig
andPluginConfig
.MediaConfig
instead of player config.PlayerLoader
now loads the plugin media entry when prepare is called and loader.load method just initializes the plugin.mediaEntry
property andonLoad
+onUpdateMedia
methods to enable media entry changes and loading.