mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-20 11:08:03 +08:00
opt: live room
Closes #427 Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -57,15 +57,16 @@ class LiveRoomController extends GetxController {
|
||||
// 硬解
|
||||
enableHA: true,
|
||||
autoplay: true,
|
||||
direction: isPortrait.value ? 'vertical' : 'horizontal',
|
||||
);
|
||||
}
|
||||
|
||||
bool? isPortrait;
|
||||
final RxBool isPortrait = false.obs;
|
||||
|
||||
Future queryLiveInfo() async {
|
||||
var res = await LiveHttp.liveRoomInfo(roomId: roomId, qn: currentQn);
|
||||
if (res['status']) {
|
||||
isPortrait = res['data'].isPortrait;
|
||||
isPortrait.value = res['data'].isPortrait ?? false;
|
||||
List<CodecItem> codec =
|
||||
res['data'].playurlInfo.playurl.stream.first.format.first.codec;
|
||||
CodecItem item = codec.first;
|
||||
|
||||
Reference in New Issue
Block a user