Hi everyone! I'm looking for help to get my simple WkWebView App working. I have a http://123.123.123 WebRTC app working on the web and I want to display it on iOS.
The problem is that when I do so and the App loads it leads me to a black screen after I get a success message (WebRTC data channel connected... Waiting for video (See the image attached).
Here's the code
import UIKit
import WebKit
class ViewController: UIViewController, WKUIDelegate {
var webView: WKWebView!
override func viewDidLoad() {
super.viewDidLoad()
let myURL = URL(string:"myurlhere")
let myRequest = URLRequest(url: myURL!)
webView.load(myRequest)
}
override func loadView() {
let webConfiguration = WKWebViewConfiguration()
webView = WKWebView(frame: .zero, configuration: webConfiguration)
webView.uiDelegate = self
view = webView
}
}