<ng-youtube-embed
video='$ctrl.lesson.youtube_id'
videoid='$ctrl.lesson.youtube_id'
height='100%'
autoplay='true'
rel='false'
modestbranding='true'
enablejsapi='true'
onstatechange='$ctrl.onYoutubeStateChange'
>
www-widgetapi.js:formatted:585 Uncaught TypeError: Cannot read property 'apply' of undefined
at L.g.I (www-widgetapi.js:formatted:585)
at X.g.l (www-widgetapi.js:formatted:1008)
at X.g.J (www-widgetapi.js:formatted:1224)
at Jb.W.g (www-widgetapi.js:formatted:1153)
at f (www-widgetapi.js:formatted:864)
g.I = function(a, b) {
var c = this.b[a];
if (c) {
for (var d = Array(arguments.length - 1), e = 1, h = arguments.length; e < h; e++)
d[e - 1] = arguments[e];
if (this.v)
for (e = 0; e < c.length; e++) {
var f = c[e];
ab(this.a[f + 1], this.a[f + 2], d)
}
else {
this.h++;
try {
for (e = 0,
h = c.length; e < h; e++)
f = c[e],
this.a[f + 1].apply(this.a[f + 2], d)
} finally {
if (this.h--,
0 < this.g.length && 0 == this.h)
for (; f = this.g.pop(); )
this.F(f)
}
}
return 0 != e
}
return !1
}