I have a demo that I am trying to produce on a mobile device. The webkit works perfectly except it does not display the video that is playing (via IVS API) to the mobile. All other objects are presented.
What should I do to get the video to display from web-ui?
http://localhost:3000/
video displays on web-ui not on iOS simulator.
Swift Class:
import WebKit
class ViewController: UIViewController, WKNavigationDelegate {
var webView: WKWebView!
override func loadView() {
webView = WKWebView()
webView.navigationDelegate = self
view = webView
}
override func viewDidLoad() {
super.viewDidLoad()
let url = URL(string: "http://localhost:3000")!
webView.load(URLRequest(url: url))
webView.allowsBackForwardNavigationGestures = true
}
}
Plist:
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
</dict>
</plist>```
Trying to demo this for work and am not a swift dev. Any advice very much appreciated!
question from:https://stackoverflow.com/questions/65601826/swift-webviewkit-fails-to-display-video-stream