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
15 stars 9 forks source link

Feature Request: Support for Custom CacheManager Parameter #47

Open rignaneseleo opened 3 days ago

rignaneseleo commented 3 days 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 3 days 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