Add playback rate control for Youtube & Vimeo

This commit is contained in:
Ilya Laktyushin
2021-07-22 21:33:32 +03:00
parent 4433eefe15
commit 8c69553891
12 changed files with 168 additions and 76 deletions

View File

@@ -14,6 +14,7 @@ protocol WebEmbedImplementation {
func pause()
func togglePlayPause()
func seek(timestamp: Double)
func setBaseRate(_ baseRate: Double)
func pageReady()
func callback(url: URL)
@@ -170,6 +171,10 @@ final class WebEmbedPlayerNode: ASDisplayNode, WKNavigationDelegate {
self.impl.seek(timestamp: timestamp)
}
func setBaseRate(_ baseRate: Double) {
self.impl.setBaseRate(baseRate)
}
func webView(_ webView: WKWebView, didStartProvisionalNavigation navigation: WKNavigation!) {
}