IFrame in UIWebview

CodeMonkeyCodeMonkey GBMember ✭✭✭

Hi all

I am trying to get a Youtube video to play in an IFrame embedded in my Webview.

This link says it is possible but when I try this my Webview.LoadError call back is fired with this error:

The operation couldn’t be completed. (NSURLErrorDomain error -999.)

Here's the snippet:

 iframeURL = "<iframe width=\"320\" height=\"600\" src=\"httpp://youtu.be/_g4DUvumjjU?rel=0&autoplay=1\" frameborder=\"0\" allowfullscreen></iframe>";
webView.LoadHtmlString(iframeURL, null);

FYI I have broken the youtube link with 'httpp' so it doesn't try load in this post..

Has anyone been able to get something like this to work?

Cheers
Adrian

Posts

Sign In or Register to comment.