-
Notifications
You must be signed in to change notification settings - Fork 148
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
YT.ready is not a function #136
Comments
could you try doing i'm not sure what |
Is it possible YT.ready (in line 101 of angular-youtube-embed.js) should actually be YT.load? When I look at the source of youtube-iframe, it seems to have a function called "load" that accepts a callback, but not a function called "ready". |
if you check out the demo, |
I'm having the same problem. I don't know where YT.ready is supposed to come from. We're making a Cordova phonegap app, so we can't load external scripts from, say, youtube. I downloaded the script that
When I debug and inspect the YT variable I get this: What is YT supposed to look like? |
take a look at the demo and type idk much at all about cordova, but i think there's a way to whitelist domains to load external scripts. good luck! |
I'm using
angular-youtube-embed
in an es6 webpack angular project. I'm loading the youtube iframe API from a fileyoutubeapi.js
, followed byimport ./youtubeapi
inindex.js
where the angular module declaration is made:When navigating to a page which uses
videoApp
, I get the errorYT.ready is not a function
.On refreshing the page, the error goes away. I'm wondering how to make sure the youtube API has loaded before
angular-youtube-embed
directives are run?The text was updated successfully, but these errors were encountered: