OutdatedGuy / cached_video_player_plus

Original video_player plugin with the superpower of caching embedded in Android and iOS.
https://pub.dev/packages/cached_video_player_plus
BSD 3-Clause "New" or "Revised" License
21 stars 12 forks source link

Feature Request: Support for Custom CacheManager Parameter #47

Open rignaneseleo opened 2 months ago

rignaneseleo commented 2 months ago

It would be great to introduce the option to pass a custom CacheManager and CacheKey parameter, allowing for more flexibility in caching strategies. This would eliminate the need to rely solely on VideoCacheManager and provide developers with the ability to implement their own cache management solutions if needed.

Use Case: This feature would be particularly useful for developers who want to:

Thank you for considering this enhancement! It would provide a lot more flexibility for different use cases.

rignaneseleo commented 2 months ago

I did it myself.

Everyone can use it with:

cached_video_player_plus:
    git:
      url: https://github.com/rignaneseleo/cached_video_player_plus.git