mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-20 03:06:59 +08:00
@@ -17,6 +17,7 @@ abstract final class SettingBoxKey {
|
||||
expandBuffer = 'expandBuffer',
|
||||
hardwareDecoding = 'hardwareDecoding',
|
||||
videoSync = 'videoSync',
|
||||
autosync = 'autosync',
|
||||
p1080 = 'p1080',
|
||||
enableAutoEnter = 'enableAutoEnter',
|
||||
enableAutoExit = 'enableAutoExit',
|
||||
|
||||
@@ -252,6 +252,9 @@ abstract final class Pref {
|
||||
static String get videoSync =>
|
||||
_setting.get(SettingBoxKey.videoSync, defaultValue: 'display-resample');
|
||||
|
||||
static String get autosync =>
|
||||
_setting.get(SettingBoxKey.autosync, defaultValue: '30');
|
||||
|
||||
static CDNService get defaultCDNService {
|
||||
if (_setting.get(SettingBoxKey.CDNService) case final String cdnName) {
|
||||
return CDNService.values.byName(cdnName);
|
||||
|
||||
Reference in New Issue
Block a user