If a web page is having latency problems, like YouTube during heavy load times (like now, 9:30pm PST), then AIR's HTMLLoader has all kinds of problems.

From rendering stuff completely incorrectly, to failing to pass Flash player detection, to this crazy error that got spit out when I tried to load a YouTube URL in it and it hung for about 20 seconds until finally this junk was spit into the output window:

ReferenceError: Can't find variable: initWatchQueue
undefined at http://www.youtube.com/watch?v=RbdbVhBGETQ : 77
ReferenceError: Can't find variable: writeMoviePlayer
undefined at http://www.youtube.com/watch?v=RbdbVhBGETQ : 375
undefined at http://www.youtube.com/watch?v=RbdbVhBGETQ : 375
ReferenceError: Can't find variable: delayLoad
onload at http://www.youtube.com/watch?v=RbdbVhBGETQ : 1646
ReferenceError: Can't find variable: delayLoad
onload at http://www.youtube.com/watch?v=RbdbVhBGETQ : 1585
ReferenceError: Can't find variable: delayLoad
onload at http://www.youtube.com/watch?v=RbdbVhBGETQ : 1524
ReferenceError: Can't find variable: delayLoad
onload at http://www.youtube.com/watch?v=RbdbVhBGETQ : 1545
ReferenceError: Can't find variable: delayLoad
onload at http://www.youtube.com/watch?v=RbdbVhBGETQ : 1667
ReferenceError: Can't find variable: delayLoad
onload at http://www.youtube.com/watch?v=RbdbVhBGETQ : 1565
ReferenceError: Can't find variable: delayLoad
onload at http://www.youtube.com/watch?v=RbdbVhBGETQ : 1687
ReferenceError: Can't find variable: delayLoad
onload at http://www.youtube.com/watch?v=RbdbVhBGETQ : 1626
ReferenceError: Can't find variable: delayLoad
onload at http://www.youtube.com/watch?v=RbdbVhBGETQ : 1606
TypeError: Undefined value
undefined at http://www.youtube.com/watch?v=RbdbVhBGETQ : 1
undefined at http://www.youtube.com/watch?v=RbdbVhBGETQ : 1
Debug session terminated.


Note that none of these variables are mine. Also note that Firefox doesn't have the same latency that AIR is having. This is running in Flash CS3 IDE Debug Mode AIR publishing. Trivial code here, too. I'm literally just creating an HTMLLoader and telling it to load this YouTube URL.

Any ideas?

I'd like to point out that Firefox actually loads that same URL fairly quickly (maybe 5-7 seconds with latency) but AIR is significantly slower every time. Sometimes it succeeds at loading it and rendering the page correctly, sometimes it loads the page but the YouTube player is drawn above the stage about half its height, sometimes it crashes Flash when it hangs too long.
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to