The problem I have is that when I click on the navigation controller, the video ( (Sound is good) continue to play in the background. This only happens on the iPad, because the video is played in a window, while on the iPhone it is played in a new modal window.
How can I Stop this? Any help is welcome, thanks in advance.
[yourWebView loadHTMLString:@“”baseURL:nil];
I have built a navigation controller, in the last page The video related to the previous selection is displayed on the above. This part works fine. The video is embedded in the web page from youtube and displayed through the webview.
The problem I have is that when I click on the navigation controller, the video (with good sound) continues to play in the background. This only happens on the iPad because the video is played in the window , And on the iPhone it is played in a new modal window.
How can I prevent this? Any help is welcome, thanks in advance.
You need to load a blank page into UIWebView to stop the audio:
[yourWebView loadHTMLString:@“”baseURL:nil];