0
Ich hatte die Links in fmt_url_map verwendet, aber es funktioniert nicht. Ich möchte das Video direkt ohne die originale Youtube-App starten.iPhone in App Youtube spielen
Ich hatte die Links in fmt_url_map verwendet, aber es funktioniert nicht. Ich möchte das Video direkt ohne die originale Youtube-App starten.iPhone in App Youtube spielen
Sie können einfach das Video in webView
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, 64.0, 64.0];
[wbView loadHTMLString:html baseURL:nil];
embedd wo wbView Ihre webview ist in dem Video & eingebettet werden url ist Ihre Video-URL.
Hoffe es hilft
Das funktioniert! Aber was ist mit dem Abspielen des Videos im Landscape-Modus? – Neutralizer
@Umair die Antwort akzeptieren, wenn es für Sie funktioniert – Swastik
Ich bin nicht der Schöpfer. – Neutralizer