Move audio service to one isolate branch.

This commit is contained in:
stonega 2021-04-09 22:23:15 +08:00
parent d3f33e5d2b
commit 7312fdd10c
3 changed files with 284 additions and 377 deletions

File diff suppressed because it is too large Load Diff

View File

@ -56,7 +56,7 @@ class EpisodeBrief extends Equatable {
artist: feedTitle, artist: feedTitle,
album: feedTitle, album: feedTitle,
duration: Duration.zero, duration: Duration.zero,
artUri: imagePath == '' ? episodeImage : 'file://$imagePath', artUri: Uri.parse(imagePath == '' ? episodeImage : 'file://$imagePath'),
extras: { extras: {
'skipSecondsStart': skipSecondsStart, 'skipSecondsStart': skipSecondsStart,
'skipSecondsEnd': skipSecondsEnd 'skipSecondsEnd': skipSecondsEnd

View File

@ -12,7 +12,7 @@ dependencies:
flutter_localizations: flutter_localizations:
sdk: flutter sdk: flutter
auto_animated: ^3.0.0 auto_animated: ^3.0.0
audio_session: ^0.0.9 audio_session: ^0.1.0
cached_network_image: ^2.5.1 cached_network_image: ^2.5.1
color_thief_flutter: ^1.0.2 color_thief_flutter: ^1.0.2
confetti: ^0.5.5 confetti: ^0.5.5
@ -44,22 +44,21 @@ dependencies:
json_annotation: ^3.1.1 json_annotation: ^3.1.1
permission_handler: ^5.0.1 permission_handler: ^5.0.1
provider: ^4.3.2 provider: ^4.3.2
rxdart: ^0.24.1 sqflite: ^2.0.0+2
sqflite: ^1.3.2+1
state_notifier: ^0.6.0 state_notifier: ^0.6.0
tuple: ^1.0.3 tuple: ^1.0.3
url_launcher: ^5.7.10 url_launcher: ^5.7.10
workmanager: ^0.2.3 workmanager: ^0.2.3
wc_flutter_share: ^0.2.2 wc_flutter_share: ^0.2.2
just_audio: ^0.7.3
audio_service:
git:
url: https://github.com/ryanheise/audio_service.git
ref: one-isolate
path: audio_service
flutter_downloader: flutter_downloader:
git: git:
url: https://github.com/stonega/flutter_downloader.git url: https://github.com/stonega/flutter_downloader.git
audio_service:
git:
url: https://github.com/stonega/audio_service.git
just_audio:
git:
url: https://github.com/stonega/just_audio.git
focused_menu: focused_menu:
git: git:
url: https://github.com/stonega/focused_menu.git url: https://github.com/stonega/focused_menu.git
@ -73,8 +72,10 @@ dependency_overrides:
cookie_jar: ^2.0.0 cookie_jar: ^2.0.0
uuid: ^3.0.1 uuid: ^3.0.1
http: ^0.13.0 http: ^0.13.0
flutter_cache_manager: ^2.1.2 flutter_cache_manager: ^3.0.1
rxdart: ^0.26.0
shared_preferences: 2.0.0 shared_preferences: 2.0.0
plugin_platform_interface: ^1.0.1
convert: ^3.0.0 convert: ^3.0.0
xml: ^5.0.2 xml: ^5.0.2
linkify: linkify: