Fix youtube video controls visibility toggling

This commit is contained in:
Ilya Laktyushin
2020-10-28 06:35:35 +04:00
parent 0e9412fbc9
commit 32b7ac2a27
7 changed files with 37 additions and 0 deletions

View File

@@ -211,4 +211,10 @@ final class WebEmbedPlayerNode: ASDisplayNode, WKNavigationDelegate {
}
}
}
func notifyPlaybackControlsHidden(_ hidden: Bool) {
if impl is YoutubeEmbedImplementation {
self.webView.isUserInteractionEnabled = !hidden
}
}
}