2010-12-23 2 views

Antwort

0

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

+0

Das funktioniert! Aber was ist mit dem Abspielen des Videos im Landscape-Modus? – Neutralizer

+0

@Umair die Antwort akzeptieren, wenn es für Sie funktioniert – Swastik

+0

Ich bin nicht der Schöpfer. – Neutralizer