-
Hello everybody,
I have this code:
var wpvs_update_time_interval = 10; jQuery(document).ready( function() { if( typeof(wpvs_video_tracking) != 'undefined' && typeof(wpvs_theme_ajax_requests) != "undefined" && wpvs_theme_ajax_requests.user != null ) { if(wpvs_video_tracking.video_type == 'fvplayer' ) { if( typeof(wpvs_fv_flowplayer) != 'undefined' && wpvs_fv_flowplayer != null ) { wpvs_fv_flowplayer.on('timeupdate', function(data) { if(data.seconds >= wpvs_update_time_interval && wpvs_update_time_interval != 0 ) { wpvs_update_users_current_video_time(data.seconds, data.duration); } }); wpvs_fv_flowplayer.on('loaded', function(data) { if(wpvs_video_tracking.start_at != null) { wpvs_fv_flowplayer.setCurrentTime(wpvs_video_tracking.start_at); } }); wpvs_fv_flowplayer.on('ended', function(data) { if(data.seconds >= wpvs_update_time_interval && wpvs_update_time_interval != 0 ) { wpvs_update_users_current_video_time(data.seconds, data.duration); } }); } }
Can you tell me if I used the correct Flowplayer API and names?
Thanks,
Chris