Files
PiliPlus/lib/models/common/video/live_quality.dart
bggRGjQaUbCoE 685852c0a4 tweak
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
2025-08-13 18:40:20 +08:00

24 lines
478 B
Dart

enum LiveQuality {
dolby(30000, '杜比'),
origin4K(25000, '4K 原画'),
super4K(20000, '4K'),
origin(10000, '原画'),
bluRay(400, '蓝光'),
superHD(250, '超清'),
smooth(150, '高清'),
flunt(80, '流畅');
final int code;
final String desc;
const LiveQuality(this.code, this.desc);
static LiveQuality? fromCode(int? code) {
for (var e in LiveQuality.values) {
if (e.code == code) {
return e;
}
}
return null;
}
}