adjust android options

This commit is contained in:
edde746
2025-12-09 19:19:22 +01:00
parent 471c913ee3
commit e53ba988aa
2 changed files with 2 additions and 1 deletions
@@ -159,6 +159,7 @@ class MpvPlayerCore(private val activity: Activity) :
// Video output configuration
MPVLib.setOptionString("vo", "gpu")
MPVLib.setOptionString("gpu-context", "android")
MPVLib.setOptionString("opengl-es", "yes")
// hwdec is set from Flutter via setProperty based on user preference
// Audio configuration
+1 -1
View File
@@ -1440,7 +1440,7 @@ String _getHwdecValue(bool enabled) {
if (Platform.isMacOS || Platform.isIOS) {
return 'videotoolbox';
} else if (Platform.isAndroid) {
return 'mediacodec-copy';
return 'auto-safe';
} else {
return 'auto'; // Windows, Linux
}