Search packages, repositories and app categories

Package detailsv2.0.4

cached_video_player

A new flutter plugin that is virtually a clone of official video_player plugin except that it supports caching( Android and iOS)

AndroidiOSWeb
30-day downloads
518
Likes
227
Pub points
140

Install package

flutter pub add cached_video_player

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

cached_video_player is a Flutter plugin that extends the functionality of the official video_player by adding built-in caching support for videos on Android, iOS, and Web. It enables efficient playback of video content by storing downloaded media locally, reducing bandwidth usage and improving load times for repeated views. Designed as a drop-in replacement for video_player, it maintains compatibility with existing code while enhancing performance for streaming or offline scenarios.

Use cases

  • Offline video playback
  • Reducing data usage for video streams
  • Faster re-play of frequently watched videos
  • Caching videos in mobile apps
  • Improving performance in low-network conditions

Key features

  • Built-in video caching
  • Cross-platform support (Android, iOS, Web)
  • Drop-in replacement for video_player
  • Efficient local storage management
  • Supports both online and offline video access

Suitable for

  • Apps requiring offline video access
  • Streaming platforms with frequent re-watches
  • Mobile apps with limited data connectivity
  • Developers seeking improved video performance
  • Projects using video_player needing caching

Considerations

  • Requires additional storage permissions on Android
  • Cache size management may need manual configuration
  • Not suitable for very large video files without optimization
  • Web support may have limitations compared to native platforms
  • Initial setup requires understanding of caching strategies

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

Cached Video Player

A flutter plugin that has been forked from the official video_player package except that it supports caching in Android and iOS. Web plugin will work like official video_player i.e. without caching support.

Installation

First, add cached_video_player as a dependency in your pubspec.yaml file.

Follow the Android and iOS configuration steps of the official video_player package. This plugin won't work in Desktop.

Issues
  • maxFileSize and maxCacheSize are hardcoded at 100MiB and 1GiB respectively in Android.
Contributors

Categories

Dependencies

Dependency list 3 items

  • meta^1.7.0
  • video_player_platform_interface^5.1.2
  • video_player_web^2.0.10

Source repository

Projects using this package