feat: hardwareDecodeFormat

This commit is contained in:
guozhigq
2024-11-24 17:38:35 +08:00
parent aa73fb4615
commit 5201c66ac1
4 changed files with 39 additions and 1 deletions

View File

@ -470,6 +470,7 @@ class PlPlayerController {
configuration: VideoControllerConfiguration(
enableHardwareAcceleration: enableHA,
androidAttachSurfaceAfterVideoParameters: false,
hwdec: enableHA ? GlobalDataCache.hardwareDecodeFormat : null,
),
);