mod: live room

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-01-11 11:44:58 +08:00
parent 26b437f5df
commit 32d2ec8ca0
12 changed files with 38 additions and 77 deletions

View File

@@ -28,7 +28,7 @@ class LiveRoomPage extends StatefulWidget {
class _LiveRoomPageState extends State<LiveRoomPage>
with WidgetsBindingObserver {
late final int _roomId;
final LiveRoomController _liveRoomController = Get.put(LiveRoomController());
late final LiveRoomController _liveRoomController;
late final PlPlayerController plPlayerController;
late Future? _futureBuilder;
late Future? _futureBuilderFuture;
@@ -55,6 +55,10 @@ class _LiveRoomPageState extends State<LiveRoomPage>
super.initState();
WidgetsBinding.instance.addObserver(this);
_roomId = int.parse(Get.parameters['roomid'] ?? '-1');
_liveRoomController = Get.put(
LiveRoomController(),
tag: Utils.makeHeroTag(_roomId),
);
PlPlayerController.setPlayCallBack(playCallBack);
if (Platform.isAndroid) {
floating = Floating();