updated example

This commit is contained in:
Lorenzo Pichilli 2022-04-22 02:51:56 +02:00
parent 46fcafcf44
commit 9006cf1228
1 changed files with 3 additions and 2 deletions

View File

@ -26,7 +26,8 @@ class _InAppWebViewExampleScreenState extends State<InAppWebViewExampleScreen> {
useShouldOverrideUrlLoading: true,
mediaPlaybackRequiresUserGesture: false,
useHybridComposition: true,
allowsInlineMediaPlayback: true
allowsInlineMediaPlayback: true,
iframeAllow: "camera; microphone"
);
PullToRefreshController? pullToRefreshController;
@ -119,7 +120,7 @@ class _InAppWebViewExampleScreenState extends State<InAppWebViewExampleScreen> {
key: webViewKey,
// contextMenu: contextMenu,
initialUrlRequest:
URLRequest(url: Uri.parse("https://flutter.dev")),
URLRequest(url: Uri.parse("https://www.pubnub.com/developers/demos/webrtc/launch/")),
// initialFile: "assets/index.html",
initialUserScripts: UnmodifiableListView<UserScript>([]),
initialSettings: settings,