CocoaPods trunk is moving to be read-only. Read more on the blog, there are 18 months to go.

JWMediaManager 0.1.2

JWMediaManager 0.1.2

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Feb 2017
SwiftSwift Version 3.0
SPMSupports SPM

Maintained by Jianxiong Wang.



  • By
  • Jianxiong Wang

JWMediaManager

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

  • iOS 8.0+
  • XCode 8.1+
  • Swift 3.0+

Installation

JWMediaManager is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "JWMediaManager"

Usage

Make sure to import JWMediaManager first.

Add MediaPlayerManagerDelegate to your class.

Create a manager instance

var mediaManager = MediaPlayerManager()

Make sure assign delegate mediaManager.delegate = self

Set playlist and play index

mediaManager.setPlayer(with: playlist, playAt: index)

Support 3 Different play modes

  • PlayMode.loop Play continuously in order
  • PlayMode.one Repeat single one
  • PlayMode.shuffle Shuffle playlist.

Author

heilb1314

License

JWMediaManager is available under the MIT license. See the LICENSE file for more info.