https://github.com/iankoex/cachingplayeritem
CachingPlayerItem is a subclass of AVPlayerItem that enables downloading and caching of media data. It is designed to be used with AVPlayer to play audio and video content from the internet. It also supports preloading of media data to improve the playback experience.
https://github.com/iankoex/cachingplayeritem
avplayer caching preloader swift swiftui
Last synced: over 1 year ago
JSON representation
CachingPlayerItem is a subclass of AVPlayerItem that enables downloading and caching of media data. It is designed to be used with AVPlayer to play audio and video content from the internet. It also supports preloading of media data to improve the playback experience.
- Host: GitHub
- URL: https://github.com/iankoex/cachingplayeritem
- Owner: iankoex
- Created: 2024-11-09T08:21:51.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-14T18:20:21.000Z (over 1 year ago)
- Last Synced: 2025-02-23T04:32:27.933Z (over 1 year ago)
- Topics: avplayer, caching, preloader, swift, swiftui
- Language: Swift
- Homepage: https://blog.iankoex.com/post/building-a-caching-and-preloading-avplayer.html
- Size: 13.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CachingPlayerItem
CachingPlayerItem is a subclass of AVPlayerItem that enables downloading and caching of media data. It is designed to be used with AVPlayer to play audio and video content from the internet.
It also supports preloading of media data to improve the playback experience.
### Dislaimer
This package will cache the entire video to disk. This is not ideal for large videos as it will consume a lot of disk space.
This will also not work with HTTP Live Streaming (HLS) videos as they are not downloaded as a single file.