A iOS and OSX media player framework based on AVPlayer. Make your player UI and logic quickly and easily.
- iOS 7.0+
- OSX 10.9+
- Xcode 7.0+
- pod 'CorePlayer'
- compile source files
- branch
Swift3
for Swift 3.0 - branch
Swift4
for Swift 4.0
- new arch is in plan, which uses AVQueuePlayer and AVPlayerItems preloading before play.
- Feature module, non-view
- Conforms
CPModuleDelegate
- View module
- Conforms
CPModuleViewDelegate
corePlayer = CorePlayer()
corePlayer.moduleManager().initModules([ModuleView.self])
corePlayer.view().frame = self.view.bounds
view.addSubview(corePlayer.view())
corePlayer.playURL(URL)
CorePlayer.Swift is available under the MIT license. See the LICENSE file for more info.