views:

438

answers:

1

Hi guys,

As we all know if I want to download an mp4 file a iphone's movie player (MPMoviePlayerController) pops out and plays the video. My question is if I can get some kind of a message that it pops out or perhaps even to prevent it from appearing?

Thanks

A: 

One thing you could try is setting a delegate for your UIWebView and implementing -webView:shouldStartLoadWithRequest:navigationType:. Return NO if it's an mp4 (or mov) file.

Ben Gottlieb
Yeah I tought about that, but how do you know if it's an mp4 file? By parsing the url? This is not accurate.
Alex1987
That's a starting point.
Ben Gottlieb