Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -(void)playYoutubeVideo{
- //*
- NSString *html = [NSString stringWithFormat: @"\
- <html><head>\
- <style type=\"text/css\">\
- body { background-color: transparent;\
- color: white; \
- margin: 0;\
- padding: 0;\
- }\
- </style>\
- </head><body style=\"margin:0\">\
- <iframe class=\"youtube-player\" width=\"%0.0f\" height=\"%0.0f\" style=\"width:320px; height:215px; position:absolute; top:0; left:-11px;\" src=\"http://www.youtube.com/embed/Jngrq0Q-YY4\" frameborder=\"0\" allowfullscreen=\"true\"></iframe>\
- </body></html>",320.0, 215.0];
- //self.theFilmWebView.backgroundColor = [UIColor clearColor];
- self.theFilmWebView.opaque = NO;
- self.theFilmWebView.hidden = NO;
- [self.theFilmWebView loadHTMLString:html baseURL:nil];
- self.theFilmWebView.scrollView.scrollEnabled = NO;
- [self.view addSubview: self.theFilmWebView];
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement