redesign app phase 2
This commit is contained in:
@@ -702,21 +702,12 @@ class MusicPlayerBackgroundTask extends BaseAudioHandler {
|
||||
}
|
||||
|
||||
Future<Uri> _songUri(MediaItem mediaItem) async {
|
||||
// We need the platform to be Android or iOS to get device info
|
||||
assert(Platform.isAndroid || Platform.isIOS,
|
||||
"_songUri() only supports Android and iOS");
|
||||
|
||||
// When creating the MediaItem (usually in AudioServiceHelper), we specify
|
||||
// whether or not to transcode. We used to pull from FinampSettings here,
|
||||
// but since audio_service runs in an isolate (or at least, it does until
|
||||
// 0.18), the value would be wrong if changed while a song was playing since
|
||||
// Hive is bad at multi-isolate stuff.
|
||||
|
||||
final androidId =
|
||||
Platform.isAndroid ? await const AndroidId().getId() : null;
|
||||
final iosDeviceInfo =
|
||||
Platform.isIOS ? await DeviceInfoPlugin().iosInfo : null;
|
||||
|
||||
final parsedBaseUrl = Uri.parse(_finampUserHelper.currentUser!.baseUrl);
|
||||
|
||||
List<String> builtPath = List.from(parsedBaseUrl.pathSegments);
|
||||
@@ -795,4 +786,4 @@ String _jellyfinRepeatModeFromRepeatMode(AudioServiceRepeatMode repeatMode) {
|
||||
case AudioServiceRepeatMode.group:
|
||||
return "RepeatAll";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user