Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When looping, video restarts at t=1 second, and startAt==0 is ignored #501

Open
guillerodriguez opened this issue Jul 2, 2024 · 0 comments

Comments

@guillerodriguez
Copy link

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;

?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant