piemonte/Player wraps AVFoundation in one view controller, and its last push was on 2 March 2026
▶️ Play and stream media in Swift
At a glance
- What is it?
- piemonte/Player is a single-file Swift video player for iOS and tvOS that you add as a child view controller. This review covers the three ways to set a source, the delegate callbacks, the three install routes and the maintenance gap.
- Who is it for?
- Use Player when an iOS or tvOS app needs a plain video view controller with local or HTTP playback and you are happy to wire the delegates yourself. Pass on it if the project must show recent upstream activity, since the last push was on 2 March 2026 and there are no GitHub releases.
- Can I use it commercially?
- Yes. MIT is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
- Is it still maintained?
- Activity is slowing. The repository last received commits 8 months ago.
- What is it written in?
- Mainly Swift, according to GitHub's language statistics.
Answers come from the project's GitHub data, last synced on November 26, 2026, and from our analysis. They are not legal advice.
Star history
- piemonte/Player2,200 ★ · +36
| Repository | 2026-10-08 | 2026-11-26 |
|---|---|---|
| piemonte/Player | 2.2k | 2.2k |
36 Stars in the last 49 days, measured from the daily GitHub snapshot. Compare with other projects
Editorial analysis
Player is a view controller you add as a child, in seven lines of containment code
Player is not a view you drop into a storyboard. It is a controller that you allocate, point at your own delegates and then add to the hierarchy as a child:
``` Swift self.player = Player() self.player.playerDelegate = self self.player.playbackDelegate = self self.player.view.frame = self.view.bounds
self.addChild(self.player) self.view.addSubview(self.player.view) self.player.didMove(toParent: self) ```
Two delegates are assigned up front, playerDelegate and playbackDelegate. The frame is set from the parent view's bounds, and the last three lines are the standard UIKit child controller sequence of addChild, addSubview and didMove(toParent:). The README calls the library a simple iOS and tvOS video player written in Swift, and this snippet is the entire setup. Every call in the snippet is UIKit.
The feature list claims orientation change support and no size restrictions, along with customizable UI and user interaction. The README does not show how to customize the UI, so that claim cannot be checked from the front page alone.
Local files, HTTP URLs, authorized streams and PHAsset videos use three different properties
The source of playback is set through one of three properties on the controller, and which one you use depends on where the video lives. For a local file or an HTTP stream, assign a URL:
``` Swift let videoUrl: URL = // file or http url self.player.url = videoUrl
The README adds that the resource must include its file extension. For HTTP streams with custom headers, build an AVURLAsset and assign it to asset:
Swift let videoUrl: URL = // http url let headers = ["Authorization": "Bearer token123"] let asset = AVURLAsset(url: videoUrl, options: ["AVURLAssetHTTPHeaderFieldsKey": headers]) self.player.asset = asset
For iCloud Photos or PHAsset videos, hand over an AVPlayerItem:
Swift let playerItem: AVPlayerItem = // your player item self.player.playerItem = playerItem ```
The split has a consequence. Setting url gives no way to attach a bearer token, so a protected stream forces you down to AVURLAsset and the AVURLAssetHTTPHeaderFieldsKey option. The header option key appears in the README as a plain string.
The README shows playFromBeginning under a play and pause heading, and no pause call
Playback control is covered in two short snippets. Under the heading play/pause the README shows one call:
``` Swift self.player.playFromBeginning()
The name says what it does: playback starts from the beginning of the media. The heading promises pause as well, but the README gives no code for pausing, resuming or seeking. Anyone who needs those has to read the generated documentation or the source in the Sources directory.
The second snippet adjusts how the picture fills the view:
Swift self.player.fillMode = .resizeAspectFit ```
The fill mode is optional and applies only when needed. The feature list also advertises video frame snapshot support, and again the README does not show the call that takes a snapshot. The front page proves the library can start playback and set the fill mode. It leaves pause, resume, seek and snapshot to the docs, which are generated with jazzy and hosted on GitHub Pages at piemonte.github.io/Player.
PlayerPlaybackDelegate reports progress as a fraction you compute yourself
Progress reporting goes through the playback delegate. The README implements it as an extension on a view controller:
``` Swift extension ViewController: PlayerPlaybackDelegate {
public func playerPlaybackWillStartFromBeginning(_ player: Player) { }
public func playerPlaybackDidEnd(_ player: Player) { }
public func playerCurrentTimeDidChange(_ player: Player) { let fraction = Double(player.currentTime) / Double(player.maximumDuration) self._playbackViewController?.setProgress(progress: CGFloat(fraction), animated: true) }
public func playerPlaybackWillLoop(_ player: Player) { self. _playbackViewController?.reset() }
} ```
Four callbacks are shown: playback will start from the beginning, playback did end, current time did change and playback will loop. The library hands you currentTime and maximumDuration, and the division into a fraction is left to your code. The progress view itself, _playbackViewController, belongs to the sample project and is not part of the library, so a progress bar is something you build.
Swift Package Manager, CocoaPods and a single copied file are the three install routes
The README names three ways in. With Swift Package Manager, add this to your Package.swift dependencies:
dependencies: [
.package(url: "https://github.com/piemonte/Player.git", from: "0.15.0")
]The alternative inside Xcode is File > Add Package Dependencies with the repository URL. With CocoaPods:
pod "Player", "~> 0.15.0"The third route needs no package manager: copy the Player.swift file from the Sources directory into your Xcode project. That works because the library is one source file, and it removes a dependency from your build at the price of tracking upstream changes by hand.
Both managed routes are pinned to 0.15.0. The repository has no GitHub releases, so check which tag your package manager actually resolves against the 0.15.0 in the README.
Older Swift versions are served by branches, and only 5.0 follows the main line
A version note near the top answers the question of which Swift the code targets. For Swift 5.0, target your Podfile at the latest release or master. For Swift 4.2, target the swift4.2 branch. For Swift 4.0, target the swift4.0 branch. A .swift-version file sits in the top-level listing next to Package.swift and Player.podspec.
The README describes the older branches in terms of Podfiles only, and the Swift Package Manager snippet above pins from 0.15.0.
The README also points to two sibling projects by the same author. For an Objective-C video player it names PBJVideoPlayer. For a Swift camera library it names Next Level. Both appear in the Resources list too, along with PBJVision, an iOS camera engine. If you want capture rather than playback, Player is the wrong library, and the README says so by pointing elsewhere.
The last push was on 2 March 2026, and the repository has no GitHub releases
The repository is not archived. The most recent push was on 2 March 2026, which is more than six months back, so Player cannot be described as actively maintained. There are no GitHub releases, and the only version numbers in the README are the 0.15.0 install pins and the Swift branch names.
The top-level listing shows a .travis.yml file next to a CLAUDE.md, a build_docs.sh script for the jazzy documentation and a Project directory with an Xcode workspace. The README does not say whether the Travis configuration still runs. The README describes the library as an iOS and tvOS player, so macOS is not mentioned at all.
Support routes are plain. For help or questions the README points to Stack Overflow with the tag player-swift. Bugs and feature ideas go to the GitHub issue tracker, and contributions go through pull requests. The license is MIT, with the full text in the LICENSE file. A team that adopts Player should plan to read the single source file and be ready to fork it, because no release process is visible from the repository.
Editorial conclusion
Use Player when an iOS or tvOS app needs a plain video view controller with local or HTTP playback and you are happy to wire the delegates yourself. Pass on it if the project must show recent upstream activity, since the last push was on 2 March 2026 and there are no GitHub releases. Before adopting, run the sample project against your own stream, including any authorization headers, because only the README examples describe behavior.
Frequently asked questions
How do I install piemonte/Player in an iOS project?
Use Swift Package Manager with the repository URL and from 0.15.0, use CocoaPods with pod Player ~> 0.15.0, or copy Player.swift from the Sources directory into your Xcode project.
Can piemonte/Player play HTTP streams that need an authorization header?
Yes, through an AVURLAsset created with the AVURLAssetHTTPHeaderFieldsKey option and assigned to the asset property. Plain HTTP and file URLs go through the url property.
Which platforms and license does piemonte/Player have?
It is a video player library for iOS and tvOS written in Swift. It is available under the MIT license, with the text in the LICENSE file.
Official sources
Add this badge to your README
If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.
[](https://hysenlabs.com/projects/piemonte-player)Star history chart for your README
[](https://hysenlabs.com/projects/piemonte-player)Was this useful?