closeAllMediaPresentations method
{@template tmpflutter_webview_platform_interface.PlatformInAppWebViewController.closeAllMediaPresentations} Closes all media the web view is presenting, including picture-in-picture video and fullscreen video.
NOTE for iOS: available on iOS 14.5+.
NOTE for MacOS: available on MacOS 11.3+.
Officially Supported Platforms/Implementations:
- iOS (Official API - WKWebView.closeAllMediaPresentations)
- MacOS (Official API - WKWebView.closeAllMediaPresentations) @{endtemplate}
Implementation
@override
Future<void> closeAllMediaPresentations() async {
Map<String, dynamic> args = <String, dynamic>{};
return await channel?.invokeMethod('closeAllMediaPresentations', args);
}