ios – WKWebView not play webM audio file


I have application who is loading some web page.
Creating webView :

    let config = WKWebViewConfiguration()
 
    config.mediaTypesRequiringUserActionForPlayback = .all

    webView = WKWebView(frame: .zero, configuration: config)
    webView.isInspectable = true

    let request = URLRequest(url: URL(string: "example.com")

    webView.load(request)

in this page i have audio file on different format (mp3/mp4/webM). I can play mp3 and mp4 format all is correct but for webM i getting error.

In my webView look like : mp3/mp4 file.

mp3/mp4 file

In my webView look like : webM.

webM file

I printed the error in the console but nothing useful.
Console error

Latest articles

spot_imgspot_img

Related articles

Leave a reply

Please enter your comment!
Please enter your name here

spot_imgspot_img