mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
Add playback rate control for Youtube & Vimeo
This commit is contained in:
@@ -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!) {
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user