We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I tried to look into doc if it already support but doesn't seems like.
Will be nice to have this support. Personally I want to able to do stuff when player played till certain times/percent.
I tried setInterval in createPlayer and was able to get the data.
setInterval
createPlayer
Sample codes can be seen here. http://www.opimedia.be/DS/webdev/YouTube/
var current = youTubePlayer.getCurrentTime(); var duration = youTubePlayer.getDuration();
The text was updated successfully, but these errors were encountered:
You can get a reference to the YouTube Player object using the onReady event handler, by doing something like:
onReady
<YouTube onReady={(event) => { const youTubePlayer = event.target // now you can do: youTubePlayer.getCurrentTime() }} />
Sorry, something went wrong.
Ok that should work great :D
but currently , it never called back? #26
No branches or pull requests
I tried to look into doc if it already support but doesn't seems like.
Will be nice to have this support. Personally I want to able to do stuff when player played till certain times/percent.
I tried
setInterval
increatePlayer
and was able to get the data.Sample codes can be seen here.
http://www.opimedia.be/DS/webdev/YouTube/
The text was updated successfully, but these errors were encountered: