Handle when UIWebView Media Player is done
I can't for the life of me figure out how to determine when a video or audio file is done after clicking a link in a UIWebView..
For instance, a user clicks a link to a video in a UIWebView in my app. The default media player launches and loads up the video. The video plays and finishes (or the user hits the Done button) .. Where do I go from here? Seems like a pretty big oversight if there's absolutely no way of handling this user interaction.
In my personal example, I'd love to be able to stop refreshing an ad while a video or audio file is being played in a UIWebView from my app so that it doesn't keep refreshing in the background while no user will ever see the ads. I can stop the ads from refreshing by detecting the filetype when a link is clicked, but I have no method of restarting the timer.
Any ideas?
|