Skip to content

wddwycc/XPlayer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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, wddwyss@gmail.com

License

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

About

PIP Video Player for iOS

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •