From 6cfddb68bbf885c4b6890bf8ea777d0a481ea8e1 Mon Sep 17 00:00:00 2001 From: tapframe Date: Wed, 15 Oct 2025 23:16:14 +0530 Subject: [PATCH] ksplayer changes --- ios/KSPlayerView.swift | 5 +++++ ios/Nuvio.xcodeproj/project.pbxproj | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/ios/KSPlayerView.swift b/ios/KSPlayerView.swift index 7570f29..7ef84c2 100644 --- a/ios/KSPlayerView.swift +++ b/ios/KSPlayerView.swift @@ -167,6 +167,11 @@ class KSPlayerView: UIView { let options = KSOptions() // Disable native player remote control center integration; use RN controls options.registerRemoteControll = false + // Reduce prebuffer to speed up start/seeks; keep a modest upper cap + options.preferredForwardBufferDuration = 0.5 + options.maxBufferDuration = 10.0 + // Enable "second open" to relax startup/seek buffering thresholds + options.isSecondOpen = true // Configure audio for proper dialogue mixing using FFmpeg's pan filter // This approach uses standard audio engineering practices for multi-channel downmixing diff --git a/ios/Nuvio.xcodeproj/project.pbxproj b/ios/Nuvio.xcodeproj/project.pbxproj index 4bf304a..084418f 100644 --- a/ios/Nuvio.xcodeproj/project.pbxproj +++ b/ios/Nuvio.xcodeproj/project.pbxproj @@ -461,7 +461,7 @@ ); OTHER_SWIFT_FLAGS = "$(inherited) -D EXPO_CONFIGURATION_DEBUG"; PRODUCT_BUNDLE_IDENTIFIER = com.nuvio.app; - PRODUCT_NAME = "Nuvio"; + PRODUCT_NAME = Nuvio; SWIFT_OBJC_BRIDGING_HEADER = "Nuvio/Nuvio-Bridging-Header.h"; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; SWIFT_VERSION = 5.0; @@ -492,8 +492,8 @@ "-lc++", ); OTHER_SWIFT_FLAGS = "$(inherited) -D EXPO_CONFIGURATION_RELEASE"; - PRODUCT_BUNDLE_IDENTIFIER = "com.nuvio.app"; - PRODUCT_NAME = "Nuvio"; + PRODUCT_BUNDLE_IDENTIFIER = com.nuvio.app; + PRODUCT_NAME = Nuvio; SWIFT_OBJC_BRIDGING_HEADER = "Nuvio/Nuvio-Bridging-Header.h"; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2";