Seriously guys?
Let me get some things right in this thread.
It would not "take Apple 1 hour to fix this". The way that Airplay works is that is uses buffering to transfer music across the network.
The Main difference between bluetooth and airplay is that bluetooth is a direct connection, where you have to be somwhere in range of the speaker or headphone, and it directly sends the audio signal to that headphone.
With airplay, the data has to run across the whole network, with eventually interfering data from other computers, cell phones, whatsoever. And that is the reason why there is a 2 second delay, so that you plebs can listen to your streams withouth it stuttering and breaking up every few miliseconds. You know when you watch that video on that 3rd party website, and you can watch 3 seconds, wait 1 second, watch 3 seconds and so on? What do you do? You pause the video, let it load, and then let it play. Now that's exactly what Airplay does.
Now tell me, how should Apple, OSX or Safari know, wheter a youtube video played in -->FLASH<-- is in sync with the audio? I mean, what is "sync" for you anyways? If you choose your Airplay speakers over the alt+click menu on the Top, all that OSX does, is send the audio stream from your computer, that what else would go over your internal speakers, to the airplay speaker, which receives the signal, waits these 2 seconds until he has enough data to play it over your remote Hi-Fi.
The video on the other hand plays in your Browser, and because it is Flash, Safari has no freaking clue, where the video is. It does simply not know, and will never know what the position of the video is, because it is actually no video, it is FLASH! Safari just knows that there is flash content, but does not know if that is an animated banner, if that is a video, a flash website with fancy schmancy things, or whatever silly things you can do in Flash. All Safari can do, is take the Audio output, send it to your speakers where it buffers exactly 2 seconds and then Plays. Safari does not know the position output of the video you are watching, ergo can it not in any way sync the audio.
And that is exactly the reason why iTunes and most importantly Quicktime CAN sync the Audio. If you are watching a movie in quicktime, it can calculate the Audio delay, and manipulate the quicktime player in waiting 2 Seconds until the movie plays. Because quicktime is a movieplayer, it returnes stuff like video position data to the OS, which this can then interprete and, let's call it "pause" the video for 2 seconds until it's in sync with the audio.
And there you have your explanation why HTML5 videos on youtube work in sync. The way HTML5 works, is that it takes the Codec of the OS to play Video, and not Flash. It is in some way just embedded quicktime, and again, that's then why the video playing gets recognized as "VIDEO" and can then be paused to sync with the Airplay.
Imagine if the OS would try to pause Flash. Would not help, because if you Pause flash, you would pause the Video AND Audio part, Safari can't split Flash into Video and Audio seperatly as it can with MP4 or MOV files.
Which, again, is what Quicktime does. It splits Audio and Video, pauses the Video output for 2 seconds, which then results in both being Sync.
That's the reason why this works without any problem on mobile devices. Do we have flash on mobile devices? Nope. Why? Because flash is buggy as ****, and if we forced youtube to have their videos in MP4 on the mobile version of YouTube for example, we can have nice things such as synced airplay. Think about it. Control isn't a bad thing all the time.
So please, stop calling these things "Fails" or "Air Pray", because it simply cannot work the way you wan't it to! I't can't because of limitations of file formats and the way files are coded/built.
too long; didn't read: Airplay has ALWAYS a 2 Second delay, it has to split the Video data from the Audio data, so that the Audio just gets sent to the Airplay Speaker and the Video data gets paused for 2 Seconds. And because Flash cannot be split, the OS is in no way able (and will not be in 200 Years) to sync flash content with Airplayh
Thank you for your time, and i hope i could clear some things up, the hate was getting real mad in here.