jwplayer - Adobe DTM and JW Player tags only iterate through the first video -


can provide me how code work on next selected video in jw carousel?

var newvideo = ["video1", "video2", "video3", "video4"]; function trackvideo(){ // video start jwplayer().onplay(function(event){  _satellite.track("videostart");  console.log("onplay");  }); } trackvideo(newvideo) 

thank assistance. expanded code , corrected loop, works perfectly. original code here

i needed modify work jwplayer playlist opposed single video (all in adobe dtm: actual tags excluded , i'm using cosnole.log return value)...thanks , here is..

// var newvideo = ["video1", "video2", "video3", "video4", "video5", "video6", "video7", "video8"]; function trackvideo(a){ for(var = 0, l = a.length; < l; i++){ // video start jwplayer(a[i]).onplay(function(event){   _satellite.track("videostart");  console.log("onplay");  }); // video stop, pause  jwplayer(a[i]).onpause(function(event){   _satellite.track("videopause");  console.log("onpause");  });  // video complete  jwplayer(a[i]).oncomplete(function(event){   _satellite.track("videocomplete");  console.log("oncomplete");  });   // video timer fires direct call rule halfway through video  jwplayer(a[i]).ontime(function(event) {  if (event.position == parseint(jwplayer().getduration()/2)) {  _satellite.track("videofiftypercent");  console.log("ontime");  }  });    // video timer fires direct call rule quarter through video  jwplayer(a[i]).ontime(function(event) {  if (event.position == parseint(jwplayer().getduration()/4)) {  _satellite.track("videotwentyfivepercent");  console.log("ontimetwentyfive");  }  }); } } trackvideo(newvideo);  

Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -