Post

Replies

Boosts

Views

Activity

Reply to Play html audio in wkwebview will report error: Required client entitlement is missing
Hi Team, Im still see the issue using : mport UIKit import WebKit class ViewController: UIViewController, WKNavigationDelegate, WKUIDelegate { @IBOutlet weak var webView: WKWebView! override func viewDidLoad() { super.viewDidLoad() webView.configuration.defaultWebpagePreferences.allowsContentJavaScript = true webView.configuration.allowsInlineMediaPlayback = true webView.configuration.allowsAirPlayForMediaPlayback = true webView.configuration.allowsPictureInPictureMediaPlayback = true webView.allowsBackForwardNavigationGestures = true webView.allowsLinkPreview = true webView.uiDelegate = self webView.navigationDelegate = self let myURL = URL(string: "https://ac-dev.oss-cn-hangzhou.aliyuncs.com/test-2022-py.html") let myRequest = URLRequest(url: myURL!) webView.load(myRequest) } } Any idea what we missed? Thanks in advance
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’23
Reply to Play html audio in wkwebview will report error: Required client entitlement is missing
Hi Team, Im still see the issue using : mport UIKit import WebKit class ViewController: UIViewController, WKNavigationDelegate, WKUIDelegate { @IBOutlet weak var webView: WKWebView! override func viewDidLoad() { super.viewDidLoad() webView.configuration.defaultWebpagePreferences.allowsContentJavaScript = true webView.configuration.allowsInlineMediaPlayback = true webView.configuration.allowsAirPlayForMediaPlayback = true webView.configuration.allowsPictureInPictureMediaPlayback = true webView.allowsBackForwardNavigationGestures = true webView.allowsLinkPreview = true webView.uiDelegate = self webView.navigationDelegate = self let myURL = URL(string: "https://ac-dev.oss-cn-hangzhou.aliyuncs.com/test-2022-py.html") let myRequest = URLRequest(url: myURL!) webView.load(myRequest) } } Any idea what we missed? Thanks in advance
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Jun ’23