SkillAgentSearch skills...

VideoCache

VideoCache is an AVPlayerItem Cache library written in Swift.

Install / Use

/learn @SoalHuang/VideoCache
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

VideoCache

VideoCache is an AVPlayerItem Cache library written in Swift.

Example


// import
import VideoCache

// setup
VideoCacheManager.logLevel = .error
VideoCacheManager.default.capacityLimit = Int64(1).GB
.
.
.
// cache all
let playerItem = AVPlayerItem(remote: url, cacheKey: <#special key for this media or nil#>)
let player = AVPlayer(playerItem: playerItem)
.
.
// cache 0~1024, 2048~4096
let playerItem = AVPlayerItem(remote: url, cacheKey: <#special key for this media or nil#>, cacheRanges: [0...1024, 2048...4096])
let player = AVPlayer(playerItem: playerItem)

Carthage

Carthage is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks. To integrate VideoCache into your Xcode project using Carthage, specify it in your Cartfile:

github "SoalHuang/VideoCache"

Author

Reference

License

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

View on GitHub
GitHub Stars17
CategoryContent
Updated2mo ago
Forks6

Languages

Swift

Security Score

90/100

Audited on Jan 17, 2026

No findings