fix(android): expose DV conversion setting

This commit is contained in:
edde746
2026-05-18 16:30:14 +02:00
parent 5a68711f7b
commit a679bae354
36 changed files with 397 additions and 63 deletions
@@ -180,6 +180,7 @@ class ExoPlayerPlugin :
val bufferSizeBytes = call.argument<Int>("bufferSizeBytes")
val tunnelingEnabled = call.argument<Boolean>("tunnelingEnabled") ?: true
val dvConversionMode = call.argument<String>("dvConversionMode") ?: "auto"
configuredBufferSizeBytes = bufferSizeBytes
currentActivity.runOnUiThread {
@@ -201,6 +202,9 @@ class ExoPlayerPlugin :
bufferSizeBytes = bufferSizeBytes,
tunnelingEnabled = tunnelingEnabled
) ?: false
if (success && playerCore?.setDebugDvConversionMode(dvConversionMode) != true) {
Log.w(TAG, "Invalid DV conversion mode during initialize: $dvConversionMode")
}
// Start hidden
playerCore?.setVisible(false)