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

Vimeo startAt initialization fails after video has been watch completely #147

Open
mcavoybn-tovuti opened this issue Dec 13, 2024 · 0 comments

Comments

@mcavoybn-tovuti
Copy link

Steps to reproduce:

  1. Create an Interactive Video (v 1.26) with a vimeo video
  2. Set Disable Navigation = Forward in Behavioral Settings
  3. Add some interactions to the video
  4. Open the content and watch the video to the end, completing the interactions in the process
  5. Before clicking 'submit' on the final screen, refresh the page
  6. Observe all the interactions are at the beginning of the video, despite being configured to be in the middle

Correct interaction placement:
image

Incorrect interaction replacement after completing the video and refreshing:
image

Error from vimeo.js:
image

The problem is startAt will be set past the duration of the video when the page is refreshed. Vimeos player will not allow the video player to seek to the end or past the end of the video. This means the video is not loaded properly, so the duration cannot be used to calculate the left offset of the interactions in the seekbar.

Adding this to the eventlistener initialization resolves the problem:
image

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