mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-07-12 04:10:12 +08:00
tweaks (#2426)
* opt: danmaku weight
* opt: cache clean
* opt: level img
* opt: play icon
* opt: svg big-vip
* opt: webview ua
* opt: simple dialog
* feat: export vtt
* tweak
* opt: mapIndexed
* feat: more subtitle
* refa: settings page
* feat: codec list options
* drawPath
Signed-off-by: dom <githubaccount56556@proton.me>
* custom dialog option
Signed-off-by: dom <githubaccount56556@proton.me>
* update
Signed-off-by: dom <githubaccount56556@proton.me>
* Revert "drawPath"
This reverts commit e8a4b19f0f.
* opt: _initStreamIndex
* fix: avoid gap
* fix: scale [skip ci]
* fix: hide repost menu not login
* tweaks
Signed-off-by: dom <githubaccount56556@proton.me>
---------
Co-authored-by: dom <githubaccount56556@proton.me>
This commit is contained in:
committed by
GitHub
parent
3dee6a85e5
commit
9d94c72e95
@@ -232,18 +232,19 @@ class LiveRoomController extends GetxController {
|
||||
final pref = Pref.liveStream;
|
||||
if (pref != null) {
|
||||
try {
|
||||
final protocolName = pref[0];
|
||||
final formatName = pref[1];
|
||||
final codecName = pref[2];
|
||||
for (var i in stream.indexed) {
|
||||
if (i.$2.protocolName == protocolName) {
|
||||
streamIndex = i.$1;
|
||||
for (var j in i.$2.format.indexed) {
|
||||
if (j.$2.formatName == formatName) {
|
||||
formatIndex = j.$1;
|
||||
for (var k in j.$2.codec.indexed) {
|
||||
if (k.$2.codecName == codecName) {
|
||||
codecIndex = k.$1;
|
||||
final String protocolName = pref[0];
|
||||
final String formatName = pref[1];
|
||||
final String codecName = pref[2];
|
||||
for (var (i, s) in stream.indexed) {
|
||||
if (s.protocolName == protocolName) {
|
||||
streamIndex = i;
|
||||
for (var (j, f) in s.format.indexed) {
|
||||
if (f.formatName == formatName) {
|
||||
formatIndex = j;
|
||||
for (var (k, c) in f.codec.indexed) {
|
||||
if (c.codecName == codecName) {
|
||||
codecIndex = k;
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user