i load a local html file into an ipad application:
NSURL *baseURL = [NSURL fileURLWithPath:[[NSBundle mainBundle] bundlePath]];
NSString *path = [[NSBundle m
I may be wrong (or silly) but, did you try file:///banane.m4v
(Add the extra '/' for root)
oh my god
<video controls>
<source src="banane.m4v">
</video>
where controls
is the magic word.
:X
For everyone that experiences a crossed out play symbol, When you drag your movie-files (mp4's work as well, just make sure the codec is okay - easiest way is to export for iPhone with QuickTime) a dialog appears. Make sure you tick your app under "add to targets".
Or if you already copied your video into the project, if you click it in Xcode's file browser, you'll have an option on the right-hand side to select targets.
You need to set the allowsInlineMediaPlayback
property on the UIWebView
:
[webView setAllowsInlineMediaPlayback:YES];