mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
fix: lives room
This commit is contained in:
@@ -26,9 +26,14 @@ class _LiveRoomPageState extends State<LiveRoomPage> {
|
||||
bool isPlay = true;
|
||||
Floating? floating;
|
||||
|
||||
void playCallBack() {
|
||||
plPlayerController?.play();
|
||||
}
|
||||
|
||||
@override
|
||||
void initState() {
|
||||
super.initState();
|
||||
PlPlayerController.setPlayCallBack(playCallBack);
|
||||
if (Platform.isAndroid) {
|
||||
floating = Floating();
|
||||
}
|
||||
@@ -44,6 +49,7 @@ class _LiveRoomPageState extends State<LiveRoomPage> {
|
||||
|
||||
@override
|
||||
void dispose() {
|
||||
PlPlayerController.setPlayCallBack(null);
|
||||
floating?.dispose();
|
||||
plPlayerController?.dispose();
|
||||
super.dispose();
|
||||
|
||||
Reference in New Issue
Block a user