mod: 默认缓冲区调小;当前解码格式查找+兜底

This commit is contained in:
orz12
2024-07-07 15:15:53 +08:00
parent 2522831cfc
commit 391c11831d
4 changed files with 32 additions and 9 deletions

View File

@@ -505,7 +505,7 @@ class PlPlayerController {
int bufferSize =
setting.get(SettingBoxKey.expandBuffer, defaultValue: false)
? (videoType.value == 'live' ? 64 * 1024 * 1024 : 32 * 1024 * 1024)
: (videoType.value == 'live' ? 32 * 1024 * 1024 : 5 * 1024 * 1024);
: (videoType.value == 'live' ? 16 * 1024 * 1024 : 3 * 1024 * 1024);
Player player = _videoPlayerController ??
Player(
configuration: PlayerConfiguration(