Reputation: 13
I work with the Youtube Iframe API and when I try to use player.loadPlaylist({list: 'PLAYLIST_ID'});
or player.cuePlaylist({list: 'PLAYLIST_ID'});
the methods return the error Uncaught TypeError: Cannot read property 'tg' of null
since yesterday.
A few days ago, the method cuePlaylist
stopped trigger the "video cued event' as it is explains in the Youtube Iframe API documentation
Can anybody help me ?
Upvotes: 1
Views: 2856
Reputation: 5967
I just fixed it with calling
player.playVideoAt(0);
after calling loadPlayList(...)
Upvotes: 2