Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 2 months 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 (about 2 months ago)
- Default Branch: main
- Last Pushed: 2024-11-09T08:39:09.000Z (about 2 months ago)
- Last Synced: 2024-11-09T09:28:26.699Z (about 2 months ago)
- Topics: avplayer, caching, preloader, swift, swiftui
- Language: Swift
- Homepage: https://blog.iankoex.com/post/building-a-caching-and-preloading-avplayer.html
- Size: 6.84 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.