带有UIWebview的IP摄像机stream在IOS 5上工作,但不在IOS 6上

嗨即时通讯stream媒体networking摄像机在我的网站上,我embedded我的网站在UIWebview,工作正常与IOS 5,但是当我打开我的应用程序在IOS 6只显示一个图像,而不是video。 在我的网站即时通讯使用<iframe width="640" height="480" src="http://112.214.96.41:87/videostream.cgi?user=user&pwd=" frameborder="0"></iframe>有人帮助我,还有另一种方式?

如果你想在UIWebView中显示一个IP Camera,你可以这样做:(假设webView是你的UIWebView的出口)

 NSString * stream = @"http://login:password@ip:port/stream/" NSString * html = [NSString stringWithFormat:@"<img name=\"Cam\" src=\"%@\" width=\"100%%\" height=\"100%%\" alt=\"Live Feed\" style=\"background-color: #000000\" />", stream]; [webView loadHTMLString:html baseURL:nil]; 

哪里stream是正确的url,取决于你的相机的型号。

它适用于iOs5和iOs6。