Browse Source

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

cyberta 3 năm trước cách đây
mục cha
commit
d7316d5716
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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)
         }
     }