XPlayer 0.2.1

XPlayer 0.2.1

Maintained by Carl.



XPlayer 0.2.1

XPlayer

Version License Platform

Introduction

XPlayer is a drop to use lib for playing video on iOS with:

  • playback control
  • landscape & portrait switch
  • picture in picture mode with smooth interactive transition

To keep it simple, the lib currently only provides two methods:

class XPlayer {
    static func play(_ url: URL, themeColor: UIColor)
    static func dismiss(completion: (() -> ())? = nil)
}

Example

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

Requirements

  • iOS >= 10.0

Installation

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

pod 'XPlayer'

Author

wddwycc, [email protected]

License

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