mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-06-02 00:58:19 +08:00
@@ -800,7 +800,10 @@ class PlPlayerController {
|
|||||||
}
|
}
|
||||||
// video-sync=display-resample
|
// video-sync=display-resample
|
||||||
await pp.setProperty("video-sync", Pref.videoSync);
|
await pp.setProperty("video-sync", Pref.videoSync);
|
||||||
await pp.setProperty("autosync", Pref.autosync);
|
final autosync = Pref.autosync;
|
||||||
|
if (autosync != '0') {
|
||||||
|
await pp.setProperty("autosync", autosync);
|
||||||
|
}
|
||||||
// vo=gpu-next & gpu-context=android & gpu-api=opengl
|
// vo=gpu-next & gpu-context=android & gpu-api=opengl
|
||||||
// await pp.setProperty("vo", "gpu-next");
|
// await pp.setProperty("vo", "gpu-next");
|
||||||
// await pp.setProperty("gpu-context", "android");
|
// await pp.setProperty("gpu-context", "android");
|
||||||
|
|||||||
@@ -252,8 +252,10 @@ abstract final class Pref {
|
|||||||
static String get videoSync =>
|
static String get videoSync =>
|
||||||
_setting.get(SettingBoxKey.videoSync, defaultValue: 'display-resample');
|
_setting.get(SettingBoxKey.videoSync, defaultValue: 'display-resample');
|
||||||
|
|
||||||
static String get autosync =>
|
static String get autosync => _setting.get(
|
||||||
_setting.get(SettingBoxKey.autosync, defaultValue: '30');
|
SettingBoxKey.autosync,
|
||||||
|
defaultValue: Platform.isAndroid ? '30' : '0',
|
||||||
|
);
|
||||||
|
|
||||||
static CDNService get defaultCDNService {
|
static CDNService get defaultCDNService {
|
||||||
if (_setting.get(SettingBoxKey.CDNService) case final String cdnName) {
|
if (_setting.get(SettingBoxKey.CDNService) case final String cdnName) {
|
||||||
|
|||||||
Reference in New Issue
Block a user