mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-19 00:26:18 +08:00
opt live onlyPlayAudio
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user