Skip to content

Instantly share code, notes, and snippets.

@abidibo
Created March 19, 2012 16:13
Show Gist options
  • Save abidibo/2117643 to your computer and use it in GitHub Desktop.
Save abidibo/2117643 to your computer and use it in GitHub Desktop.
Bug fix for flowplayer ipad
video.fp_setPlaylist = function(playlist) {
log("Setting playlist");
activeIndex = 0;
for ( var i = 0; i < playlist.length; i++ ) {
if(typeof playlist[i].url != 'undefined') playlist[i] = fixClip(playlist[i]);
}
activePlaylist = playlist;
// keep flowplayer.js in sync
$f.fireEvent(self.id(), 'onPlaylistReplace', playlist);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment