I am currently working on a browser that supports multiple tabs on the iPad. Problem is iOS doesn't allow for more than one tab to be playing audio/video at the same time, trying this causes issues to arise such as all the audio to stop and not come back.
I have noticed that Google Chrome's browser actually stops the media in the tab that goes inactive. I am wondering how they go about it. I know it is possible to completely stop the media via a [webView loadRequest:NSURLRequestWithString(@"about:blank")];
statement but that causes the page to display a blank screen. I would like to merely pause the media.
Is there some javascript I can execute that will stop the media in the UIWebView? If so, what would it look like (I have never touched javascript before)?
Thanks in advance!