From 396e9dae3cecee7b93b171efecfdc4176bf1469c Mon Sep 17 00:00:00 2001 From: Luqman Fadlli <75630095+luqmanfadlli@users.noreply.github.com> Date: Sat, 6 Jun 2026 01:56:29 +0700 Subject: [PATCH] fix: Use VideoToolbox for iOS MPV hardware decoding --- iosApp/iosApp/Player/MPVPlayerBridge.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/iosApp/iosApp/Player/MPVPlayerBridge.swift b/iosApp/iosApp/Player/MPVPlayerBridge.swift index 563a692e..5216c24f 100644 --- a/iosApp/iosApp/Player/MPVPlayerBridge.swift +++ b/iosApp/iosApp/Player/MPVPlayerBridge.swift @@ -317,7 +317,7 @@ final class MPVPlayerViewController: UIViewController { checkError(mpv_set_option_string(mpv, "vo", "gpu-next")) checkError(mpv_set_option_string(mpv, "gpu-api", "vulkan")) checkError(mpv_set_option_string(mpv, "gpu-context", "moltenvk")) - checkError(mpv_set_option_string(mpv, "hwdec", "auto")) + checkError(mpv_set_option_string(mpv, "hwdec", "videotoolbox")) checkError(mpv_set_option_string(mpv, "audio-channels", "stereo")) checkError(mpv_set_option_string(mpv, "audio-fallback-to-null", "yes")) checkError(mpv_set_option_string(mpv, "vulkan-swap-mode", "fifo")) @@ -498,7 +498,7 @@ final class MPVPlayerViewController: UIViewController { metalLayer.wantsExtendedDynamicRangeContent = extendedDynamicRange guard mpv != nil else { return } - setStringProperty("hwdec", hardwareDecoder) + setStringProperty("hwdec", "videotoolbox") setStringProperty("target-colorspace-hint", targetColorspaceHint ? "yes" : "no") setStringProperty("tone-mapping", toneMapping) setStringProperty("hdr-compute-peak", hdrComputePeak ? "yes" : "no")