opt live onlyPlayAudio

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-07-16 17:44:06 +08:00
parent e0243461bb
commit f223befad6
4 changed files with 16 additions and 4 deletions

View File

@@ -64,7 +64,7 @@ class LiveHttp {
}
}
static Future liveRoomInfo({roomId, qn}) async {
static Future liveRoomInfo({roomId, qn, bool onlyAudio = false}) async {
var res = await Request().get(
Api.liveRoomInfo,
queryParameters: {
@@ -77,6 +77,7 @@ class LiveHttp {
'ptype': 8,
'dolby': 5,
'panorama': 1,
if (onlyAudio) 'only_audio': 1,
},
);
if (res.data['code'] == 0) {