TestsTested | ✓ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | Feb 2017 |
SwiftSwift Version | 3.0 |
SPMSupports SPM | ✗ |
Maintained by Jianxiong Wang.
To run the example project, clone the repo, and run pod install
from the Example directory first.
JWMediaManager is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "JWMediaManager"
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 orderPlayMode.one
Repeat single onePlayMode.shuffle
Shuffle playlist.heilb1314
JWMediaManager is available under the MIT license. See the LICENSE file for more info.