开发者

How to Play High resolution youtube video in iPhone?

开发者 https://www.devze.com 2023-03-10 13:55 出处:网络
I want to play high resolutionYouTube video in my native application this video:http://www.youtube开发者_开发问答.com/v/279x-tNx_Gw&hl=de_DE&fs=1 in my application so what should i do?try this

I want to play high resolution YouTube video in my native application this video:http://www.youtube开发者_开发问答.com/v/279x-tNx_Gw&hl=de_DE&fs=1 in my application so what should i do?


try this it may help.

NSString* embedHTML = [NSString stringWithFormat:@"body { background-color: transparent; color: white; } ",videourl];
//NSString* html = [NSString stringWithFormat:embedHTML];
if(webView == nil) {
CGRect frame = CGRectMake(0,0,200,200); webView = [[UIWebView alloc] initWithFrame:frame];
[self.view addSubview:webView];
}
[webView loadHTMLString:embedHTML baseURL:nil];

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号