CorePlayer.Swift
CorePlayer.Swift copied to clipboard
An elegant iOS and OSX media player framework based on AVPlayer.
CorePlayer.Swift
A iOS and OSX media player framework based on AVPlayer. Make your player UI and logic quickly and easily.
Requirements
- iOS 7.0+
- OSX 10.9+
- Xcode 7.0+
How To Get Started
- pod 'CorePlayer'
- compile source files
- branch
Swift3for Swift 3.0 - branch
Swift4for Swift 4.0
Architecture
- [ ] new arch is in plan, which uses AVQueuePlayer and AVPlayerItems preloading before play.
CPModuleManager`
CPModule
- Feature module, non-view
- Conforms
CPModuleDelegate
CPModuleView
- View module
- Conforms
CPModuleViewDelegate
Usage
corePlayer = CorePlayer()
corePlayer.moduleManager().initModules([ModuleView.self])
corePlayer.view().frame = self.view.bounds
view.addSubview(corePlayer.view())
corePlayer.playURL(URL)
Snapshot


License
CorePlayer.Swift is available under the MIT license. See the LICENSE file for more info.