Skip to content

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

@guillerodriguez

Description

@guillerodriguez

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;

?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions