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,15 +1,15 @@
import 'package:PiliPlus/models_new/live/live_room_play_info/stream.dart';
class Playurl {
List<Stream>? stream;
List<Stream> stream;
Playurl({
this.stream,
required this.stream,
});
factory Playurl.fromJson(Map<String, dynamic> json) => Playurl(
stream: (json['stream'] as List<dynamic>?)
?.map((e) => Stream.fromJson(e as Map<String, dynamic>))
stream: (json['stream'] as List<dynamic>)
.map((e) => Stream.fromJson(e as Map<String, dynamic>))
.toList(),
);
}