From 8114e55a687e70170b0cc9f6c6ff96d4338f23c0 Mon Sep 17 00:00:00 2001 From: Thiago <100139247+thiagofariasonfido@users.noreply.github.com> Date: Wed, 17 Apr 2024 12:32:36 +0200 Subject: [PATCH] Update WebViewViewController.swift (#8) Fix Live Broadcast, which opens a full native camera without a button to take a picture of the document. --- SmartCaptureDemo/UI/WebViewViewController.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/SmartCaptureDemo/UI/WebViewViewController.swift b/SmartCaptureDemo/UI/WebViewViewController.swift index 02eb6d4..e87701b 100644 --- a/SmartCaptureDemo/UI/WebViewViewController.swift +++ b/SmartCaptureDemo/UI/WebViewViewController.swift @@ -89,6 +89,8 @@ final class WebViewViewController: UIViewController { let webConfiguration = WKWebViewConfiguration() webConfiguration.userContentController = contentController + webConfiguration.allowsInlineMediaPlayback = true + webConfiguration.mediaPlaybackRequiresUserAction = false return webConfiguration }