video_cache_server 0.0.3 copy "video_cache_server: ^0.0.3" to clipboard
video_cache_server: ^0.0.3 copied to clipboard

A Flutter plugin that provides video caching functionality by running a local HTTP server to proxy and cache video content.

video_cache_server #

A Flutter plugin that provides video caching functionality by running a local HTTP server to proxy and cache video content.

Features #

  • Caches video content for offline playback
  • Supports multiple platforms: Android, iOS, macOS, Windows, Linux, and Web
  • Handles m3u8 (HLS) video streams
  • Supports range requests for efficient streaming
  • Customizable cache directory and server configuration

Getting started #

Add the package to your pubspec.yaml:

dependencies:  
  video_cache_server: ^0.0.3

Usage #

import 'package:video_cache_server/video_cache_server.dart';

// Initialize the cache server  
final cacheServer = await VideoCacheServer(
cacheDir: '/path/to/cache/directory',
).start();

// Convert a video URL to a cached URL  
final videoUrl = 'https://example.com/video.mp4';
final cachedUrl = cacheServer.getProxyUrl(videoUrl);

// Use the cached URL with your video player  
// ...  

// When done, stop the server  
await cacheServer.stop();
1
likes
130
points
39
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter plugin that provides video caching functionality by running a local HTTP server to proxy and cache video content.

Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

flutter, flutter_web_plugins, http, plugin_platform_interface, web

More

Packages that depend on video_cache_server