wwe-johndpope / CorePlayer.Swift

A elegant iOS and OSX media player framework based on AVPlayer.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CorePlayer.Swift

Swift pod platform License weibo

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 Swift3 for Swift 3.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.

About

A elegant iOS and OSX media player framework based on AVPlayer.

License:MIT License


Languages

Language:Swift 99.3%Language:Ruby 0.7%