fix: Small bugfixes

This commit is contained in:
PartyDonut 2025-10-09 14:46:53 +02:00
parent 5722defe34
commit dd98bad61c
2 changed files with 4 additions and 1 deletions

View file

@ -42,6 +42,7 @@ extension ItemBaseModelsBooleans on List<ItemBaseModel> {
}
FladderItemType get getMostCommonType {
if (isEmpty) return FladderItemType.movie;
final Map<FladderItemType, int> counts = {};
for (final item in this) {

View file

@ -56,7 +56,9 @@ class MediaControlsWrapper extends BaseAudioHandler implements VideoPlayerContro
Future<void> init() async {
if (!initializedWrapper) {
initializedWrapper = true;
VideoPlayerControlsCallback.setUp(this);
if (!kIsWeb || Platform.isAndroid) {
VideoPlayerControlsCallback.setUp(this);
}
await AudioService.init(
builder: () => this,
config: const AudioServiceConfig(