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.


Downloads

Total20
Week0
Month0

Installs

Apps3
Test Targets1
powered by Segment

GitHub

Stars1
Watchers1
Forks0
Issues0
Contributors1
Pull Requests0

Code

Files1
LOCLines of Code 258


  • 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.