Reproduce video incrustado en UIWebView con HTML5
De hecho, estoy intentando reproducir un video local en un UIWebView, con HTLM5.
Lo que realmente hago es esto:
NSString *embedHTML = [NSString stringWithFormat:@"\
<html><head>\
<style type=\"text/css\">\
body {\
background-color: transparent;\
color: white;\
}\
</style>\
</head><body style=\"margin:0\">\
< src=\"%@\" \
</embed>\
</body></html>", [[NSBundle mainBundle] pathForResource:@"ash(1).mov" ofType:nil]];
[webView setOpaque:NO];
NSString *html = [NSString stringWithFormat:embedHTML, webView.frame.size.width, webView.frame.size.height];
[webView loadHTMLString:html baseURL:nil];
Tengo en mi guión gráfico un UIWebView llamado webView con propiedad débil / no atómica
@property (weak, nonatomic) IBOutlet UIWebView *webView;
Cuando lanzo la aplicación, no sucede nada: la pantalla sigue en blanco y no se reproduce ningún video.