opt: 播放器单例

This commit is contained in:
guozhigq
2024-05-15 23:55:04 +08:00
parent 12f2e743c6
commit 780ada983e
7 changed files with 21 additions and 23 deletions

View File

@ -26,7 +26,7 @@ class VideoPlayerServiceHandler extends BaseAudioHandler with SeekHandler {
static final List<MediaItem> _item = [];
Box setting = GStrorage.setting;
bool enableBackgroundPlay = false;
PlPlayerController player = PlPlayerController.getInstance();
PlPlayerController player = PlPlayerController();
VideoPlayerServiceHandler() {
revalidateSetting();