Skip to content

Commit

Permalink
fix!: wrong storage container used to store the data (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
OutdatedGuy authored Apr 10, 2024
1 parent ef5dafc commit b532ffa
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/cached_video_player_plus.dart
Original file line number Diff line number Diff line change
Expand Up @@ -425,10 +425,8 @@ class CachedVideoPlayerPlusController

/// Attempts to open the given [dataSource] and load metadata about the video.
Future<void> initialize() async {
await GetStorage.init(
'cached_video_player_plus',
);
final storage = GetStorage();
await GetStorage.init('cached_video_player_plus');
final storage = GetStorage('cached_video_player_plus');

late String realDataSource;
bool isCacheAvailable = false;
Expand Down

0 comments on commit b532ffa

Please sign in to comment.