activated youtube player does not resize
Posted: Thu Oct 04, 2012 4:51 am
when the resize (large player) button is clicked
Here's what seems to be happening:
The above function waits for the player to be ready (a.getApiInterface() doesn't throw). From what I remember, the dummy embed accepts all method invocations, so a.getApiInterface() doesn't throw, returns undefined and the player init starts prematurely and fails further up the stack.
If getApiInterface can be made to throw, then I think Td would wait till the real player appeared and then properly init it.
Here's what seems to be happening:
Code: Select all
n.Td = function() {
if (!this.na) {
var a = F(this.H.attrs.id);
try {
a.getApiInterface();
Qk(this.n);
return
}
catch (b) {}
O(s(this.Td, this), 50)
}
If getApiInterface can be made to throw, then I think Td would wait till the real player appeared and then properly init it.