Page 1 of 1

activated youtube player does not resize

Posted: Thu Oct 04, 2012 4:51 am
by al_9x
when the resize (large player) button is clicked

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)
    }
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.

Re: activated youtube player does not resize

Posted: Fri Oct 05, 2012 12:01 am
by GµårÐïåñ
I can reproduce what you are saying but not consistently the case. Seems like a timing issue.

Re: activated youtube player does not resize

Posted: Fri Oct 12, 2012 10:30 am
by Giorgio Maone
A work around can be tried through a (built-in) surrogate.
Unfortunately I broke my left Achilles tendon recently and I'm about to receive surgery, so I'm trying to administer priorities carefully.
Any help is appreciate.