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? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
How to use in browser?
I get "Uncaught ReferenceError: YTPlayer is not defined".
The text was updated successfully, but these errors were encountered:
Seems like the global var to use is ytPlayer instead of YTPlayer. So use const player = new ytPlayer('#player')
const player = new ytPlayer('#player')
Sorry, something went wrong.
Loading failed for the <script> with source “https://www.youtube.com/iframe_api”.
No branches or pull requests
How to use in browser?
<script src='https://www.youtube.com/iframe_api' async></script> <script type="text/javascript" src="yt-player.js"></script> const player = new YTPlayer('#player')I get "Uncaught ReferenceError: YTPlayer is not defined".
The text was updated successfully, but these errors were encountered: