搜尋套件、儲存庫與 APP 分類

套件詳情v2.0.4

cached_video_player

一個全新的Flutter外掛,幾乎完全複製官方的video_player外掛,但支援快取(Android 和 iOS)

AndroidiOSWeb
近 30 天下載
518
喜歡數
227
Pub 分數
140

安裝套件

flutter pub add cached_video_player

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

cached_video_player 是一個 Flutter 插件,透過為 Android、iOS 和 Web 加入內建快取支援,擴展官方 video_player 的功能。它能透過將下載的媒體儲存在本機,實現影片內容的高效播放,減少頻寬使用並加快重複觀看時的載入時間。設計為 video_player 的即插即用取代品,同時保持與現有程式碼的相容性,並在串流或離線情境中提升效能。

適用情境

  • 離線影片播放
  • 減少影片串流的資料用量
  • 更快地重新播放經常觀看的影片
  • 在移動應用中緩存影片
  • 在低網路條件下提升效能

主要特色

  • 內建影片快取
  • 跨平台支援(Android、iOS、Web)
  • video_player 的即插即用替代品
  • 高效的本地儲存管理
  • 支援線上和離線影片存取

適合對象

  • 需要離線影片存取的應用
  • 頻繁重播的串流平台
  • 行動應用程式與有限資料連接
  • 尋求提升影片效能的開發者
  • 使用 video_player 需要快取的專案

使用建議

  • 需要在 Android 上額外的儲存權限
  • 快取大小管理可能需要手動設定
  • 未經優化,不適合非常大的影片檔案
  • Web 支援與原生平台相比可能有其限制
  • 初始設定需要了解快取策略

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

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

所屬分類

依賴

依賴清單 3 項

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

原始碼儲存庫

使用此套件的專案