简体   繁体   English

iPhone应用程序中的flv视频URL流

[英]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? 我想在我的应用程序中播放flv video ,该怎么办?在iphone应用程序中是否有任何代码可以从URL播放flv视频?

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. 您无法在iPhone中播放flv视频。 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. 这是解决此问题的最佳方法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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