Quantcast
Channel: UIWebView loadHTMLString for playing video file - Stack Overflow
Viewing all articles
Browse latest Browse all 4

UIWebView loadHTMLString for playing video file

$
0
0

LoadHtmlString UIWebView is not working. I want to play embeded you tube video. I have tried with Embeded HTML string. But some seems broken i am getting white screen. i Have tried with following

NSString* html = @"<embed id=\"yt\" src=\"http://www.youtube.com/v/6eK-W32IME0?fs=1&hl=en_US&enablejsapi=1\" type=\"application/x-shockwave-flash\" width=\"330\" height=\"200\"></embed>";NSString*html = @"<iframe class=\"youtube-player\" type=\"text/html\" width=\"320\" height=\"460\" src=\"http://www.youtube.com/watch?v=oEn9g4pNW9Y&feature=youtu.be\" frameborder=\"0\"> </iframe>";[videoView loadHTMLString:html baseURL:nil];

But does not get success. Can any one help me ? What wrong i have done here? Thanks


Viewing all articles
Browse latest Browse all 4

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>