简体   繁体   中英

flv video URL streaming in iPhone Application

Thanks in Advance.

I want to play flv video in my Application,How can I do it?is there any code to play flv video from url in iphone Application?

I am using following code for this.

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, webViewObj.frame.size.width, webViewObj.frame.size.height];
        [self.webViewObj loadHTMLString:html baseURL:nil];

Thanks

You can't play an flv video in your iphone. Apple doesnt support it. So if you want to play this videos, then convert it to another formats in the server side. That is the best solution for this problem.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM