Browse Source

suspend media playback instead of pausing it, if WebxdcViewController gets dismissed

cyberta 3 years ago
parent
commit
d7316d5716
1 changed files with 1 additions and 1 deletions
  1. 1 1
      deltachat-ios/Controller/WebxdcViewController.swift

+ 1 - 1
deltachat-ios/Controller/WebxdcViewController.swift

@@ -182,7 +182,7 @@ class WebxdcViewController: WebViewViewController {
     override func viewDidDisappear(_ animated: Bool) {
         super.viewDidDisappear(animated)
         if #available(iOS 15.0, *) {
-            webView.pauseAllMediaPlayback()
+            webView.setAllMediaPlaybackSuspended(true)
         }
     }