diff --git a/lib/services/audio_handler.dart b/lib/services/audio_handler.dart index 22e4baf85..d37c00429 100644 --- a/lib/services/audio_handler.dart +++ b/lib/services/audio_handler.dart @@ -1,5 +1,3 @@ -import 'dart:io'; - import 'package:audio_service/audio_service.dart'; import 'package:flutter/cupertino.dart'; import 'package:hive/hive.dart'; @@ -60,13 +58,6 @@ class VideoPlayerServiceHandler extends BaseAudioHandler with SeekHandler { // await player.seekTo(position); } - @override - Future onTaskRemoved() async { - if (Platform.isAndroid) { - exit(0); - } - } - Future setMediaItem(MediaItem newMediaItem) async { if (!enableBackgroundPlay) return; // print("此时调用栈为:");