You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I tried to add speed control by adding the following functions in your YouTubePlayer.
"func getPlaybackRate()" "
"func getAvailablePlaybackRates(completion: )"
"func setPlaybackRate(suggestedRate:Double)"
The functions "getPlaybackRate" and "getAvailablePlaybackRates" worked fine but "setPlaybackRate" caused the error.
Is there any way to control playback speed?
The error observed by "setPlaybackRate" is as follows.
Error Domain=WKErrorDomain Code=4 "A JavaScript exception occurred" UserInfo={WKJavaScriptExceptionLineNumber=1, WKJavaScriptExceptionMessage=SyntaxError: Unexpected token ':', WKJavaScriptExceptionColumnNumber=0, WKJavaScriptExceptionSourceURL=about:blank, NSLocalizedDescription=A JavaScript exception occurred}
["[YouTubePlayer]", "Error executing javascript"]
Thank you,
The text was updated successfully, but these errors were encountered:
Hi, I tried to add speed control by adding the following functions in your YouTubePlayer.
"func getPlaybackRate()" "
"func getAvailablePlaybackRates(completion: )"
"func setPlaybackRate(suggestedRate:Double)"
The functions "getPlaybackRate" and "getAvailablePlaybackRates" worked fine but "setPlaybackRate" caused the error.
Is there any way to control playback speed?
The error observed by "setPlaybackRate" is as follows.
Error Domain=WKErrorDomain Code=4 "A JavaScript exception occurred" UserInfo={WKJavaScriptExceptionLineNumber=1, WKJavaScriptExceptionMessage=SyntaxError: Unexpected token ':', WKJavaScriptExceptionColumnNumber=0, WKJavaScriptExceptionSourceURL=about:blank, NSLocalizedDescription=A JavaScript exception occurred}
["[YouTubePlayer]", "Error executing javascript"]
Thank you,
The text was updated successfully, but these errors were encountered: