sdk xcode iphone Embedding youtube videos
I've just successfully embedded a youtube video into my project. but I want to add more videos into the same page but I'm not sure how to do this. Can anyone help?
here is the .h
// Implement viewDidLoad to do additional setup after loading the view, typically from a nib.
- (void)viewDidLoad {
adView.delegate=self;
[superviewDidLoad];
// webView is a UIWebView, either initialized programmatically or loaded as part of a xib.
NSString *htmlString = @"<html><head><meta name = \"viewport\" content = \"initial-scale = 1.0, user-scalable = no,width= 280\"/></head><body style=\"background:#F00;margin-top:0px;margin-left:0px\"><div><object width=\"280\" height=\"100\"><param name=\"movie\" value=\"http://www.youtube.com/v/8bLKVHhzM20?version=3&hl=en_US&rel=0 \"></param><param name=\"wmode\" value=\"transparent\"></param><embed src=\"http://www.youtube.com/v/8bLKVHhzM20?version=3&hl=en_US&rel=0 \"type=\"application/x-shockwave-flash\"wmode=\"transparent\" width=\"280\" height=\"100\"></embed></object></div></body></html>";
[thumbnailViewloadHTMLString:htmlString baseURL:[NSURLURLWithString:@"http://www.your-url.com"]];
}