Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

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"]];

}

Posted on Apr 12, 2012 4:05 AM

Reply

There are no replies.

sdk xcode iphone Embedding youtube videos

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.