Objective c 没有在Xcode中嵌入一些youtube视频
我在我的应用程序中嵌入了youtube视频,就像很多教程中显示的那样Objective c 没有在Xcode中嵌入一些youtube视频,objective-c,ios,xcode,ios4,youtube-api,Objective C,Ios,Xcode,Ios4,Youtube Api,我在我的应用程序中嵌入了youtube视频,就像很多教程中显示的那样 NSString *htmlString = [NSString stringWithFormat:@"\ <html><head>\ <style type=\"text/css\">\ body {\
NSString *htmlString = [NSString stringWithFormat:@"\
<html><head>\
<style type=\"text/css\">\
body {\
background-color: transparent;\
color: white;\
}\
</style>\
</head><body style=\"margin:0\">\
<embed src=\"%@\"\
type=\"application/x-shockwave-flash\" width=\"180\" height=\"140\"></embed>\
</body></html>", videoLink];
[webView loadHTMLString:htmlString baseURL:nil];
NSString*htmlString=[nsstringstringwithformat:@”\
\
\
身体{\
背景色:透明\
颜色:白色\
}\
\
\
\
“,视频链接];
[webView加载htmlString:htmlString基URL:nil];
为什么我可以播放这样的视频www.youtube.com/watch?v=FMueitNN8HI
而不是像这样www.youtube.com/watch?v=jsFV1A8l5e4
在第二种情况下,它显示了一个带有按钮播放的webview,如
问题在哪里?
感谢这是因为上传第二个视频的帐户的所有者选择不使视频与手机兼容。这是你在我的电脑上打开的第二个视频的屏幕截图,浏览器用户代理设置为iPhone