activated youtube player does not resize

Bug reports and enhancement requests
Post Reply
al_9x
Master Bug Buster
Posts: 931
Joined: Thu Mar 19, 2009 4:52 pm

activated youtube player does not resize

Post 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.
Mozilla/5.0 (Windows NT 5.1; rv:16.0) Gecko/20100101 Firefox/16.0
User avatar
GµårÐïåñ
Lieutenant Colonel
Posts: 3365
Joined: Fri Mar 20, 2009 5:19 am
Location: PST - USA
Contact:

Re: activated youtube player does not resize

Post by GµårÐïåñ »

I can reproduce what you are saying but not consistently the case. Seems like a timing issue.
~.:[ Lï£ê ï§ å Lêmðñ åñÐ Ì Wåñ† M¥ Mðñê¥ ßå¢k ]:.~
________________ .: [ Major Mike's ] :. ________________
world is a vampire and browsers are zombies and users are the virus
User avatar
Giorgio Maone
Site Admin
Posts: 9454
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: activated youtube player does not resize

Post 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.
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20100101 Firefox/16.0
Post Reply