Skip to content

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

License

Notifications You must be signed in to change notification settings

flexih/CorePlayer.Swift

Repository files navigation

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
  • branch Swift4 for 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.

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published