I have an html file named videoplay.html
with following content
Title
Why use an HTML file to play the video and not use MPMoviePlayerViewController?
NSURL *assetURL = [NSURL fileURLWithPath:<#path_to_movie#>];
MPMoviePlayerController *moviePlayer = [[MPMoviePlayerController alloc] initWithContentURL:assetURL];
if ([moviePlayer respondsToSelector:@selector(setFullscreen:animated:)]) {
// Use the new 3.2 style API
moviePlayer.shouldAutoplay = YES;
[_delegate.view addSubview:moviePlayer.view];
[moviePlayer setFullscreen:YES animated:YES];
} else {
// Use the old 2.0 style API
[moviePlayer play];
}
Doesn't this work for you?