Switch to forked better_native_video_player that uses preferredPeakBitRate instead of replaceCurrentItem for seamless quality transitions without black flash. Fork also adds configureForLivePlayback and getLatencyToLive APIs for low-latency tuning and HLS program date-time based latency. Add latency polling (10s interval) with auto-sync chat delay support. Only update syncedChatDelay on >2s drift to avoid restarting countdown. Add cookie extraction from WKWebView login session for ad-free GQL playback. The auth-token cookie works with the web Client-ID per Streamlink's approach. Extract at login, persist to secure storage, and attempt fresh extraction on init for existing logged-in users. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
14 lines
499 B
Swift
14 lines
499 B
Swift
import Flutter
|
|
import UIKit
|
|
|
|
@main
|
|
@objc class AppDelegate: FlutterAppDelegate {
|
|
override func application(
|
|
_ application: UIApplication,
|
|
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
|
|
) -> Bool {
|
|
GeneratedPluginRegistrant.register(with: self)
|
|
CookieExtractorPlugin.register(with: self.registrar(forPlugin: "CookieExtractorPlugin")!)
|
|
return super.application(application, didFinishLaunchingWithOptions: launchOptions)
|
|
}
|
|
}
|