feat: 支持不开启后台播放时的音频打断 支持有通知是减小音量通知结束时回复

This commit is contained in:
Riri
2023-10-28 14:52:29 +08:00
parent e65e6229ad
commit 2348c14008
4 changed files with 57 additions and 47 deletions

View File

@ -1,8 +1,11 @@
import 'audio_handler.dart';
import 'audio_session.dart';
late VideoPlayerServiceHandler videoPlayerServiceHandler;
late AudioSessionHandler audioSessionHandler;
Future<void> setupServiceLocator() async {
final audio = await initAudioService();
videoPlayerServiceHandler = audio;
audioSessionHandler = AudioSessionHandler();
}