I am using swfobject.js version 2.2.
I am calling swfobject.embedSWF with the last parameter (callbackFn) set to a local function in my Javascript code.
After that, two different routines are invoked: 1. My callback function 2. 'onYouTubePlayerReady', which is a callback function defined by the swfobject API.
What is the difference between these two, and on which one should I rely in order to be sure that the video has uploaded and is ready to play?
I am asking this, because on Safari, only my callback function is invoked, and so I need to know whether it is safe to rely on it.