Skip to content

feat: function to clear existing video cache#14

Merged
OutdatedGuy merged 4 commits intoOutdatedGuy:mainfrom
chorauoc:feature/clear-cache
May 23, 2024
Merged

feat: function to clear existing video cache#14
OutdatedGuy merged 4 commits intoOutdatedGuy:mainfrom
chorauoc:feature/clear-cache

Conversation

@chorauoc
Copy link
Contributor

  • Added removeFileFromCache function to clear cache and get storage entry
  • Exposed getter for isDisposed to check if player already disposed
  • Added clearCache function to clear all cache and get storage
  • Added addListener override method to prevent exception to be thrown when attempting to add a listener after the controller has already been disposed
  • Code refactor

@OutdatedGuy
Copy link
Owner

Thanks for the contribution! I'll review the code when I get some free time.

@OutdatedGuy OutdatedGuy self-requested a review March 23, 2024 17:01
Copy link
Owner

@OutdatedGuy OutdatedGuy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like a lot of formatting are changed.

Can you first run dart fix --apply and then dart format .

@OutdatedGuy OutdatedGuy changed the title Clear Cache feat: function to clear existing video cache Mar 25, 2024
@OutdatedGuy OutdatedGuy added the enhancement New feature or request to improve existing functionality label Mar 25, 2024
@OutdatedGuy OutdatedGuy linked an issue Mar 25, 2024 that may be closed by this pull request
@chorauoc
Copy link
Contributor Author

Formatted as requested

@chorauoc chorauoc requested a review from OutdatedGuy March 25, 2024 16:07
Copy link
Owner

@OutdatedGuy OutdatedGuy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution. There are some changes I have requested. Please resolve them and we can merge this PR.

@OutdatedGuy OutdatedGuy linked an issue Apr 10, 2024 that may be closed by this pull request
@OutdatedGuy
Copy link
Owner

Hi @chorauoc, are you still working on this PR?

C Kumara and others added 2 commits May 23, 2024 07:41
…ntry

- Exposed getter for isDisposed to check if player already disposed
- Added clearCache function to clear all cache and get storage
- Added addListener override method to prevent exception to be thrown when attempting to add a listener after the controller has already been disposed
- Code refactor
@OutdatedGuy OutdatedGuy force-pushed the feature/clear-cache branch from 2f6cdbd to 6eaa5cd Compare May 23, 2024 02:40
Copy link
Owner

@OutdatedGuy OutdatedGuy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@OutdatedGuy OutdatedGuy merged commit 87370f4 into OutdatedGuy:main May 23, 2024
This was referenced May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request to improve existing functionality

Projects

None yet

2 participants