Question

I already know that you can have an embedded Vimeo video start from a certain point by adding this line of code #t=0m0s to the iframe source, but what I'm trying to achieve is to have the time the viewer is on the page be cookied so it can set the start point when they return.

This way the video picks up where they left off.

I know the values can be passed with cookies so I'm assuming it's possible, I just don't have the javascript knowledge to wrap my head around it.

Any ideas if this is actually possible?

Was it helpful?

Solution

You can use our JavaScript API to listen for the playProgress event to record how far along they are in the video, then use the beforeunload event on window to store the value that you have in a cookie.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top