Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wddwycc/xplayer
PIP Video Player for iOS
https://github.com/wddwycc/xplayer
ios player swift swift4
Last synced: 5 days ago
JSON representation
PIP Video Player for iOS
- Host: GitHub
- URL: https://github.com/wddwycc/xplayer
- Owner: wddwycc
- License: mit
- Created: 2016-09-20T03:43:06.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T06:34:05.000Z (almost 2 years ago)
- Last Synced: 2024-10-31T16:21:28.581Z (17 days ago)
- Topics: ios, player, swift, swift4
- Language: Swift
- Size: 1.05 MB
- Stars: 109
- Watchers: 5
- Forks: 11
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# XPlayer
[![Version](https://img.shields.io/cocoapods/v/XPlayer.svg?style=flat)](https://cocoapods.org/pods/XPlayer)
[![License](https://img.shields.io/cocoapods/l/XPlayer.svg?style=flat)](https://cocoapods.org/pods/XPlayer)
[![Platform](https://img.shields.io/cocoapods/p/XPlayer.svg?style=flat)](https://cocoapods.org/pods/XPlayer)![](https://storage.googleapis.com/duan/etc/69D3CB50-0CEF-4FA6-999F-926FB5A2C731/XPlayer_demo.gif
)## 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 transitionTo keep it simple, the lib currently only provides two methods:
```swift
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](https://cocoapods.org). To install
it, simply add the following line to your Podfile:```ruby
pod 'XPlayer'
```## Author
wddwycc, [email protected]
## License
XPlayer is available under the MIT license. See the LICENSE file for more info.