0
我想從我的web視頻加載視頻,這個視頻不是來自youtube我沒有得到如何加載它可以任何人幫助我以外的代碼如何在webView以外的視頻加載視頻
- (void)embedYouTube:(NSString*)url frame:(CGRect)frame
{
NSString* embedHTML = @"<html><head> <style type=\"text/css\">body {background-color: transparent;color: white;}</style></head><body style=\"margin:0\"><embed id=\"yt\" src=\"%@\" type=\"application/x-shockwave-flash\" width=\"%0.0f\" height=\"%0.0f\"></embed></body></html>";
NSString* html = [NSString stringWithFormat:embedHTML, url, frame.size.width, frame.size.height];
// UIWebView *webView =[[UIWebView alloc] initWithFrame:CGRectMake(0, 0, 320, 480)];
[vebview loadHTMLString:html baseURL:nil];
[self.view addSubview:vebview];
}
- (void)viewDidLoad
{
[self embedYouTube:@"http://player.vimeo.com/video/32983838" frame:CGRectMake(0, 0, 320, 449)];
[super viewDidLoad];
}
我可以不導入媒體文件或任何其他方式嗎? – NullData
我想要這個鏈接http://player.vimeo.com/video/32983838 – NullData