Skip to content

Commit

Permalink
fix(android): use multi assetAudioPlayer instance fix patch and disab…
Browse files Browse the repository at this point in the history
…le Pre-download and play by default in Android too
  • Loading branch information
Kingkor Roy Tirtho committed May 5, 2023
1 parent 1fff0f1 commit cdb3268
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/provider/user_preferences_provider.dart
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,6 @@ final userPreferencesProvider = ChangeNotifierProvider(
recommendationMarket: 'US',
themeMode: ThemeMode.system,
layoutMode: kIsMobile ? LayoutMode.compact : LayoutMode.adaptive,
predownload: kIsMobile,
predownload: false,
),
);
9 changes: 5 additions & 4 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,11 @@ packages:
assets_audio_player:
dependency: "direct main"
description:
name: assets_audio_player
sha256: dcea8cd9c11cd9c34586f2446bfcdf099362159c56f97517ba941ac151974ea9
url: "https://pub.dev"
source: hosted
path: "."
ref: "4cbd4bc4b7be8a329effbb52c5b3f5d3ab042b35"
resolved-ref: "4cbd4bc4b7be8a329effbb52c5b3f5d3ab042b35"
url: "https://github.com/mt633/Flutter-AssetsAudioPlayer"
source: git
version: "3.0.6"
assets_audio_player_web:
dependency: transitive
Expand Down
7 changes: 6 additions & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,12 @@ environment:

dependencies:
args: ^2.3.2
assets_audio_player: ^3.0.6
# Patch for the uncontrollable shadow instance of ExoPlayer running in bg
# https://github.com/florent37/Flutter-AssetsAudioPlayer/issues/765
assets_audio_player:
git:
url: https://github.com/mt633/Flutter-AssetsAudioPlayer
ref: 4cbd4bc4b7be8a329effbb52c5b3f5d3ab042b35
async: ^2.9.0
audio_service: ^0.18.9
audio_session: ^0.1.13
Expand Down

0 comments on commit cdb3268

Please sign in to comment.