I can't seem to get this working using stringByEvaluatingJavascriptFromString. Apparently the webview does something peculiar to youtube videos (due to the YouTubePlugIn.webplugin perhaps?) and the javascript API is unusable.
The problem I'm having: How do I pause\stop a video when the user navigates away from a UIWebView with an embedded YouTube video?
Right now the only thing I can think off is reloading the view from a string before navigating away... but that seems heavy and hackish.
Has anyone had any luck with this?