Description
Player is a simple video player library for iOS and tvOS, written in Swift. It plays local media files and streams remote media over HTTP, and it offers a customizable interface and user interaction. The README lists its features as support for local and streamed media, a customizable UI, no size restrictions, orientation change support, a simple API and video frame snapshots. To use it, you add the Player controller to your view hierarchy and give it a file path for a local resource, including the file extension. For HTTP streams that need custom headers, you create an AVAsset, and for iCloud Photos or PHAsset videos you use an AVPlayerItem. The controller also supports play and pause, adjusting the fill mode, and showing playback progress. You can install it with Swift Package Manager, with CocoaPods, or by copying the Player.swift file from the Sources directory into your project. The README lists Swift targets: version 5.0 uses the latest release, and older branches support Swift 4.2 and 4.0. The documentation is generated with jazzy and hosted on GitHub Pages. The library is released under the MIT license.…
Highlights
- Plays local media and streams remote HTTP video
- Customizable UI and user interaction
- Orientation change support and video frame snapshots
- Swift Package Manager, CocoaPods or manual install
- AVAsset and AVPlayerItem support for headers and iCloud Photos
Ratings & Reviews
No ratings yet
Be the first to rate Player.
People also visit
Player FAQ
What is Player?
A simple video player library for iOS and tvOS, written in Swift.
Can it stream video?
Yes. It plays remote media over HTTP. For streams that need custom headers, the README uses an AVAsset.
How do I install it?
With Swift Package Manager, with CocoaPods, or by copying Player.swift into your Xcode project.
Which Swift versions does it support?
The README lists 5.0 for the latest release, and branches for Swift 4.2 and 4.0.
What license is it under?
MIT. The README says the full text is in the LICENSE file.
What are the best Player alternatives?
Popular alternatives to Player include PhotoBrowser, MediaPicker and Agrume. See all Player alternatives



