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

Request to add individual cache clearing method #13

Closed chorauoc closed 3 months ago

chorauoc commented 6 months ago

Hi,

Can you implement a way to remove individual cached video from cache. For example if I pass url to that function it should remove only that vied from the cache

Thanks

OutdatedGuy commented 6 months ago

@chorauoc, nice idea! I'll implement it after I get some free time.

As always PRs are welcomed!

chorauoc commented 6 months ago

@OutdatedGuy I have made these changes, so can you give me permission to create pull request. Because I am getting permission error when try to create a pull request. Or you can check the code in attached file and add to your repo

cached_video_player_plus.dart.zip

OutdatedGuy commented 6 months ago

@chorauoc to create a PR you would have to:

  1. Fork this repo into your account.
  2. Commit the changes into a different branch than main (suppose feat/clear-cache)
  3. Then push that branch to your fork
  4. Then create a PR into this repo from the branch in your fork.