-
Notifications
You must be signed in to change notification settings - Fork 49
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
Quality change #2
Comments
Hi @sankhadeeproy007. Unfortunately, The package didn't support changing Quality of the Video for now. The good news is you can add any Youtube Iframe function and should work correctly using react-native-webview-invoke
//src/web/index.js
....
const createPlayer = () => {
....
}
invoke.define("createPlayer", createPlayer);
const changeQuality = (opts) => {
//https://developers.google.com/youtube/iframe_api_reference#Playback_quality
player.setPlaybackQuality(opts)
}
invoke.define("changeQuality", changeQuality);
//src/mobile/YTWebView.tsx
....
export default class YTWebView extends Component<YTWebViewProps> {
...
_createPlayer = this.invoke.bind("createPlayer");
_changeQuality = this.invoke.bind("changeQuality");
} lets me know if you need more help to implement the option to change the quality. |
Great! Thanks for the solution, I'll try that out. |
Heya - very nice lib! But really, where is the right place to call the _changeQuality ? That is really the missing part of this great lib |
setPlaybackQuality is no longer supported. |
Hi, thanks for the package. Does this support the option to change the quality of the video?
The text was updated successfully, but these errors were encountered: