diff --git a/lib/plugin/pl_player/controller.dart b/lib/plugin/pl_player/controller.dart index ac8417aa0..b1eec4987 100644 --- a/lib/plugin/pl_player/controller.dart +++ b/lib/plugin/pl_player/controller.dart @@ -800,7 +800,10 @@ class PlPlayerController { } // video-sync=display-resample 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 // await pp.setProperty("vo", "gpu-next"); // await pp.setProperty("gpu-context", "android"); diff --git a/lib/utils/storage_pref.dart b/lib/utils/storage_pref.dart index e3bf08422..c66079204 100644 --- a/lib/utils/storage_pref.dart +++ b/lib/utils/storage_pref.dart @@ -252,8 +252,10 @@ 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 String get autosync => _setting.get( + SettingBoxKey.autosync, + defaultValue: Platform.isAndroid ? '30' : '0', + ); static CDNService get defaultCDNService { if (_setting.get(SettingBoxKey.CDNService) case final String cdnName) {