diff --git a/README.md b/README.md index b353274..6129e9a 100644 --- a/README.md +++ b/README.md @@ -143,7 +143,7 @@ I used this project to test the capabilities of the following technologies: ## Roadmap -* CC in Expanded Controls +* CC in Expanded Controls (iOS) * Handle Ad Break * Handle progress seek * Handle queue diff --git a/ios/Classes/SwiftFlutterCastFrameworkPlugin.swift b/ios/Classes/SwiftFlutterCastFrameworkPlugin.swift index 2e72712..103337a 100644 --- a/ios/Classes/SwiftFlutterCastFrameworkPlugin.swift +++ b/ios/Classes/SwiftFlutterCastFrameworkPlugin.swift @@ -239,6 +239,25 @@ public class SwiftFlutterCastFrameworkPlugin: NSObject, FlutterPlugin, GCKSessio return result } + public func showTracksChooserDialogWithError(_ error: AutoreleasingUnsafeMutablePointer) { + // let dialog = GCKUIMediaTrackSelectionViewController.init() + // let rootViewController = UIApplication.shared.keyWindow?.rootViewController + // + // if (rootViewController is UINavigationController) { + // debugPrint("showTracksChooserDialog: rootViewController is UINavigationController") + // (rootViewController as! UINavigationController).pushViewController(dialog,animated:true) + // } else if rootViewController != nil { + // debugPrint("showTracksChooserDialog: rootViewController is UINavigationController") + // let navigationController = UINavigationController(rootViewController:dialog) + // rootViewController?.present(navigationController, animated:true, completion:nil) + // } + // else { + // debugPrint("showTracksChooserDialog: missing rootViewController") + // } + // TODO: implement this feature + print("showTracksChooserDialog: unsupported feature") + } + // MARK: - GCKSessionManagerListener // onSessionSuspended