Looking for a Swift camera library? Check out Next Level.
Need a different version of Swift?
5.0 - Target your Podfile to the latest release or master
4.2 - Target your Podfile to the swift4.2 branch
4.0 - Target your Podfile to the swift4.0 branch
Features
plays local media or streams remote media over HTTP
customizable UI and user interaction
no size restrictions
orientation change support
simple API
video frame snapshot support
Quick Start
Player is available for installation using the Cocoa dependency manager CocoaPods. Alternatively, you can simply copy the Player.swift file into your Xcode project.
Player
Player
is a simple iOS video player library written in Swift.Need a different version of Swift?
5.0
- Target your Podfile to the latest release or master4.2
- Target your Podfile to theswift4.2
branch4.0
- Target your Podfile to theswift4.0
branchFeatures
Quick Start
Player
is available for installation using the Cocoa dependency manager CocoaPods. Alternatively, you can simply copy thePlayer.swift
file into your Xcode project.Usage
The sample project provides an example of how to integrate
Player
, otherwise you can follow these steps.Allocate and add the
Player
controller to your view hierarchy.Provide the file path to the resource you would like to play locally or stream. Ensure you’re including the file extension.
play/pause
Adjust the fill mode for the video, if needed.
Display video playback progress, if needed.
Documentation
You can find the docs here. Documentation is generated with jazzy and hosted on GitHub-Pages.
Community
Resources
License
Player is available under the MIT license, see the LICENSE file for more information.