mod: 视频单例模式

This commit is contained in:
guozhigq
2023-08-08 16:38:36 +08:00
parent d46cff80e1
commit add1e6e2eb
4 changed files with 85 additions and 51 deletions

View File

@ -14,7 +14,7 @@ class LiveRoomController extends GetxController {
// 静音状态
RxBool volumeOff = false.obs;
PlPlayerController plPlayerController =
PlPlayerController(controlsEnabled: false);
PlPlayerController.getInstance(controlsEnabled: false);
// MeeduPlayerController meeduPlayerController = MeeduPlayerController(
// colorTheme: Theme.of(Get.context!).colorScheme.primary,