When looping, the default startAt time is 1s instead of 0, and setting startAt=0 explicitly does not help. This is due to the following line:
|
YTPlayer.opt.startAt = YTPlayer.opt.startAt || 1; |
where a 0 value for startAt is falsey and thus get replaced with 1.
Perhaps change this to:
YTPlayer.opt.startAt = (YTPlayer.opt.startAt !== undefined) ? YTPlayer.opt.startAt : 1;
?