-
Hi,
I have a page with several players on it.
This code works:
if( typeof(flowplayer) != "undefined" ) { flowplayer( function(api,root) { api.bind('ready', function() { alert( 'Video duration is '+api.video.duration ); }); }); }
But something simple like this does not (getting api is not defined error):
var api = flowplayer(0); api.load();
Just want to load the api for an arbitrary player (in this example the first player on the page) and start the playback.
What am I missing? Thanks!