function loopPlyr() {
  var seeking = false;
  startTime = Math.floor(videoPlayerInstance.getCurrentTime());
  endTime = startTime + 5;
  // Prob need && not seeked here
  videoPlayerInstance.on("timeupdate", function() {
    if (videoPlayerInstance.getCurrentTime() >= endTime && !seeking) {
      videoPlayerInstance.seek(startTime);
    }
  });
  videoPlayerInstance.on("seeking", function() {
    seeking = true;
  });
}
/**
 * loopPlyr - This loops the plyr from the place the user has selected + five seconds.
 * Every second the vide plays we check whether that is smaller than the initial time + five seconds.
 * If it's not then we return back to the initial time. We also check that the user is not seeking so as to allow
 * the initial time to be changed. This kind of works at the moment. But this probably needs to be more visible.
 *
 * FIXME: Allow user to also jump to any point in video by checking the "seeked" is not called
 *
 * @see setupPlyr
 */
This loops the plyr from the place the user has selected + five seconds.
Every second the vide plays we check whether that is smaller than the initial time + five seconds.
If it's not then we return back to the initial time. We also check that the user is not seeking so as to allow
the initial time to be changed. This kind of works at the moment. But this probably needs to be more visible.

Allow user to also jump to any point in video by checking the "seeked" is not called

@see setupPlyr
This loops the plyr from the place the user has selected + five seconds . Every second the vide plays we check whether that is smaller than the initial time + five seconds . If it ' s not then we return back to the initial time . We also check that the user is not seeking so as to allow the initial time to be changed . This kind of works at the moment . But this probably needs to be more visible . Allow user to also jump to any point in video by checking the " seeked " is not called @see setupPlyr
function loopPlyr() {
  var seeking = false;
  startTime = Math.floor(videoPlayerInstance.getCurrentTime());
  endTime = startTime + 5;
  videoPlayerInstance.on("timeupdate", function() {
    if (videoPlayerInstance.getCurrentTime() >= endTime && !seeking) {
      videoPlayerInstance.seek(startTime);
    }
  });
  videoPlayerInstance.on("seeking", function() {
    seeking = true;
  });
}
function loopPlyr ( ) { var seeking = false ; startTime = Math . floor ( videoPlayerInstance . getCurrentTime ( ) ) ; endTime = startTime + 5 ; videoPlayerInstance . on ( "timeupdate" , function ( ) { if ( videoPlayerInstance . getCurrentTime ( ) >= endTime && ! seeking ) { videoPlayerInstance . seek ( startTime ) ; } } ) ; videoPlayerInstance . on ( "seeking" , function ( ) { seeking = true ; } ) ; }
loopPlyr - This loops the plyr from the place the user has selected + five seconds.
loopPlyr - This loops the plyr from the place the user has selected + five seconds .
// Prob need && not seeked here