react-native-webview icon indicating copy to clipboard operation
react-native-webview copied to clipboard

fix(ios, macos): Suspend media playback when destroying WebView on iOS/macOS

Open davidsharp opened this issue 7 months ago • 0 comments

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

davidsharp avatar Nov 22 '23 10:11 davidsharp