Add android version for stopping auto selection of subtitles

This commit is contained in:
Alex Kim
2026-01-13 22:19:47 +11:00
parent 16940075b2
commit 8541ba02d4
2 changed files with 2 additions and 2 deletions

View File

@@ -1,6 +1,5 @@
{
"lockfileVersion": 1,
"configVersion": 0,
"workspaces": {
"": {
"name": "streamyfin",

View File

@@ -509,7 +509,8 @@ class MPVLayerRenderer(private val context: Context) : MPVLib.EventObserver {
if (pendingExternalSubtitles.isNotEmpty()) {
pendingExternalSubtitles.forEachIndexed { index, subUrl ->
android.util.Log.d("MPVRenderer", "Adding external subtitle [$index]: $subUrl")
MPVLib.command(arrayOf("sub-add", subUrl))
// "auto" flag = add without auto-selecting (order preserved, MPVLib.command is sync)
MPVLib.command(arrayOf("sub-add", subUrl, "auto"))
}
pendingExternalSubtitles = emptyList()