i found the script, but in the event that i couldn’t find it i would’ve probably gone in the direction of skipping it (ie that object wouldn’t enter the array). not ideal, but i know of another service that i’d like to use but it doesn’t offer a javascript api.
vimeo api
Events
All events return the same data format, with differing data depending on the event. If an event has no specific data, like play, the data key will not be returned at all.
{
"event": "eventName",
"player_id": "player_id",
"data": {}
}
The following events are available to listen to:
ready
Fired automatically when the player is ready to accept commands. Do not try to add listeners or call functions before receiving this event.
When using the Flash Embed Code, the player will attempt to call vimeo_player_loaded(). You can change this using the js_ready flashvar. If a player_id has been set, it will be passed to that function as the first parameter.
loadProgress
Fired as the video is loading. Includes the percent loaded and the duration of the video. This also includes bytes loaded and bytes total in the Flash player. Note: the percent value differs between the Flash and HTML players. In Flash, it is the percentage of total bytes loaded, while in the HTML player, it is the percentage of the duration.
{"percent":"0.326", "bytesLoaded":"32159909", "bytesTotal":"98650027", "duration":"365.507"}
playProgress
Fired as the video is playing. Includes seconds, percentage played, and the total duration.
{"seconds":"4.308", "percent":"0.012", "duration":"359.000"}
play
Fired when the video begins to play.
pause
Fired when the video pauses.
finish
Fires when the video playback reaches the end.