简介
在当下的视频点播应用场景下,端侧对视频缓存的需求可谓刚需,一方面可以为公司节省流量成本,一方面可以提升用户的播放体验,有一石二鸟之效。
近期,本人用C写了一个缓存库,支持iOS/Android/harmony系统,并在以上3个平台自测过,MIT license,开箱即用。
特性
- Cross-Platform Support: Supports video caching on Android, iOS, and HarmonyOS.
- Video Format Support: Supports caching of MP4 and HLS video formats.
- HTTP Caching Proxy : A high-performance HTTP caching proxy built with
libevent
.- HTTP 302 Redirection Support: Handles HTTP 302 redirects to ensure proper video resource access.
- Domain IP Pool Support: Configurable IP pools for domains, offering flexible resource access.
- Cache Management: Supports customizable cache eviction mechanisms.
- LRU Eviction Strategy: Implements an LRU (Least Recently Used) cache eviction strategy to ensure cache efficiency.
github地址
欢迎使用,欢迎就使用问题交流。