HomeiOS Developmentin iOS Swift cannot play youtube embed video hyperlink

in iOS Swift cannot play youtube embed video hyperlink [duplicate]


I’ve WKWebView in my swift app. and attempting so as to add embeded youtube hyperlink to play the video.

let html = """
    <!DOCTYPE html>
    <html>
    <head><meta identify="viewport" content material="width=device-width, initial-scale=1.0"></head>
    <physique model="margin:0;padding:0;">
    <iframe width="100%" top="100%" src="https://www.youtube.com/embed/J1E-sYOyk2E?si=0HtWjjeuQvgu4qS0" title="YouTube video participant" frameborder="0" permit="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>
    </physique>
    </html>
    """
    webView.loadHTMLString(html, baseURL: nil)

However video shouldn’t be taking part in, getting Error 153.

in iOS Swift cannot play youtube embed video hyperlink [duplicate]

The way to repair this.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments