Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Commit 836d9b9

Browse files
committed
make inlineMediaPlayback behavior consistent across platforms
1 parent f6660a9 commit 836d9b9

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

packages/webview_flutter/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
2+
## 0.3.22+3
3+
4+
* Support inline media on iPhone if the HTML5 content requests it.
5+
16
## 0.3.22+2
27

38
* Update package:e2e reference to use the local version in the flutter/plugins

packages/webview_flutter/ios/Classes/FlutterWebView.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ - (instancetype)initWithFrame:(CGRect)frame
9090
configuration.userContentController = userContentController;
9191
[self updateAutoMediaPlaybackPolicy:args[@"autoMediaPlaybackPolicy"]
9292
inConfiguration:configuration];
93+
configuration.allowsInlineMediaPlayback = true;
9394

9495
_webView = [[FLTWKWebView alloc] initWithFrame:frame configuration:configuration];
9596
_navigationDelegate = [[FLTWKNavigationDelegate alloc] initWithChannel:_channel];

packages/webview_flutter/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: webview_flutter
22
description: A Flutter plugin that provides a WebView widget on Android and iOS.
3-
version: 0.3.22+2
3+
version: 0.3.22+3
44
homepage: https://github.com/flutter/plugins/tree/master/packages/webview_flutter
55

66
environment:

0 commit comments

Comments
 (0)