I am loading videos(mp4) and Audio(mp3) files into a UIwebview.
It’s straight forward and works nicely
NSURLRequest *request = [[NSURLRequest alloc] initWithURL: videoURL cachePolicy: NSURLRequestUseProtocolCachePolicy timeoutInterval: 30.0];
[webView loadRequest: request];
[request release];
Question:
How do I prevent the video / audio from autoplay ?
I want the video to pause and let the user click “play” assuming he wants to play it.
Thanks.
Answering my own question
using the following code will do the job