• Stars
    star
    108
  • Rank 321,259 (Top 7 %)
  • Language
    Swift
  • License
    MIT License
  • Created about 8 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

PIP Video Player for iOS

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.