mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-20 19:14:42 +08:00
* refa: cdn * feat: live cdn (WIP) * tweaks Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me> * add live quality [skip ci] Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me> * mod: replace durl host * tweak [skip ci] Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me> --------- Co-authored-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
26 lines
505 B
Dart
26 lines
505 B
Dart
enum LiveQuality {
|
|
dolby(30000, '杜比'),
|
|
origin4K(25000, '4K 原画'),
|
|
super4K(20000, '4K'),
|
|
super2K(15000, '2K'),
|
|
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;
|
|
}
|
|
}
|