react-native-webview
react-native-webview copied to clipboard
fix(ios, macos): Suspend media playback when destroying WebView on iOS/macOS
We had an issue with iOS and macOS where audio and video would continue playing after the WebView was unmounted, the only work around seems to be injecting JavaScript before unmounting, which isn't always easy or guaranteed
This issue has been reported a handful of times, such as in #2449
This PR fixes this issue by pausing all media playback in the webview destroy function