Skip to content

Plugin fires seeking event after end event #68

@hmps

Description

@hmps

👋

First off, thank you for your work on this! It looks to be exactly what we need for a simple video editor project. 🙏

We have a particular situation where we show an overlay on the video once it ended. If the user starts scrubbing after this, we remove the overlay to give them access to the video again. We noticed that this line:

this.currentTime(this._offsetEnd - this._offsetStart);

makes the player emit a seeking event after the end event on

this.trigger('ended');

We couldn't figure out the need for this.currentTime(this._offsetEnd - this._offsetStart) (we removed it locally and didn't see any bad effects). Can you tell us what it's needed for?

Would you be willing to change the behavior? Either be removing this.currentTime(this._offsetEnd - this._offsetStart) or by making it configurable.

I'm happy to submit a PR either way, just want to know if it's a direction your willing to take before committing the time 😄

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