opt: 竖屏直播布局
This commit is contained in:
@ -48,6 +48,7 @@ class LiveRoomController extends GetxController {
|
||||
// 直播间弹幕开关 默认打开
|
||||
RxBool danmakuSwitch = true.obs;
|
||||
late String buvid;
|
||||
RxBool isPortrait = false.obs;
|
||||
|
||||
@override
|
||||
void onInit() {
|
||||
@ -101,6 +102,7 @@ class LiveRoomController extends GetxController {
|
||||
Future queryLiveInfo() async {
|
||||
var res = await LiveHttp.liveRoomInfo(roomId: roomId, qn: currentQn);
|
||||
if (res['status']) {
|
||||
isPortrait.value = res['data'].isPortrait;
|
||||
List<CodecItem> codec =
|
||||
res['data'].playurlInfo.playurl.stream.first.format.first.codec;
|
||||
CodecItem item = codec.first;
|
||||
|
||||
Reference in New Issue
Block a user