switch live stream/format/codec/url support

Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-06-11 12:16:24 +08:00
parent aa35569ebe
commit ea5d7593ff
11 changed files with 318 additions and 99 deletions

View File

@@ -1,18 +1,18 @@
import 'package:PiliPlus/models_new/live/live_dm_info/host_list.dart';
class LiveDmInfoData {
String? token;
List<HostList>? hostList;
String token;
List<HostList> hostList;
LiveDmInfoData({
this.token,
this.hostList,
required this.token,
required this.hostList,
});
factory LiveDmInfoData.fromJson(Map<String, dynamic> json) => LiveDmInfoData(
token: json['token'] as String?,
hostList: (json['host_list'] as List<dynamic>?)
?.map((e) => HostList.fromJson(e as Map<String, dynamic>))
token: json['token'] as String,
hostList: (json['host_list'] as List<dynamic>)
.map((e) => HostList.fromJson(e as Map<String, dynamic>))
.toList(),
);
}