简体   繁体   中英

play .mov file in UIWebView

I have a .mov file in my backend servers. I want to play this in UIWebView instance. This is how i am doing it using HTML5

NSString *html = [NSString stringWithFormat:@"<video src='%@' controls autoplay height='480' width='640'> </video>",[mediaUrl absoluteString]];
[self.webView loadHTMLString:html baseURL:[NSURL URLWithString:@""]];

The thing is mediaUrl hits an API on my backend servers which does a HTTP redirect to the .mov file. This is not working in UIWebView . How do i solve this?

为什么不想使用MPMoviePlayerViewController?

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