opt: 播放器单例

This commit is contained in:
guozhigq
2024-05-15 23:55:04 +08:00
parent 5a10dbaf4c
commit 44f2a168ce
7 changed files with 21 additions and 23 deletions

View File

@ -17,8 +17,7 @@ class LiveRoomController extends GetxController {
double volume = 0.0;
// 静音状态
RxBool volumeOff = false.obs;
PlPlayerController plPlayerController =
PlPlayerController.getInstance(videoType: 'live');
PlPlayerController plPlayerController = PlPlayerController(videoType: 'live');
Rx<RoomInfoH5Model> roomInfoH5 = RoomInfoH5Model().obs;
late bool enableCDN;
late int currentQn;