Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need to add playback speed control #226

Open
ymatt345 opened this issue Jan 27, 2022 · 1 comment
Open

Need to add playback speed control #226

ymatt345 opened this issue Jan 27, 2022 · 1 comment

Comments

@ymatt345
Copy link

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,

@ankit0812
Copy link

Hi @ymatt345 Where you able to achieve this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants