خرید بک لینک

Vote count: 0

I am trying to embed a video from youtube with the following code:

func setUpVideo() {
    let width = webView.frame.width
    let height = webView.frame.height
    let frame = 0
    bmiWebView.allowsInlineMediaPlayback = true
    let videoUrl = "https://www.youtube.com/embed/GCALWdwKr48"
    let htmlUrl = "<html><body><iframe width=(width) height=(height) src=(videoUrl)?&playsinline = 1 frameborder=(frame) allowfullscreen></iframe></body></html>"
    webView.loadHTMLString(htmlUrl, baseURL: NSBundle.mainBundle().bundleURL)
}

I'm able to load the video initially with white background but when it loads it looks like below. I'm not sure why there is a white background. If someone can tell me how to remove that will be really helpful. Thank you. youtube

asked 28 secs ago

برچسب: نویسنده: استخدام کار تاريخ: شنبه 2 مرداد 1395 ساعت: 4:17

صفحه بندی