# HTML5 Video that remembers where a user left off?

**URL:** <https://forums.realmacsoftware.com/t/html5-video-that-remembers-where-a-user-left-off/17068>\
**Category:** RapidWeaver Classic\
**Created:** [November 10, 2017, 1:01am UTC](https://forums.realmacsoftware.com/t/html5-video-that-remembers-where-a-user-left-off/17068 "2017-11-10T01:01:15Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![adman17](https://avatars.discourse-cdn.com/v4/letter/a/5f9b8f/32.png) [@adman17](https://forums.realmacsoftware.com/u/adman17)\
**Post date:** [November 10, 2017, 1:01am UTC](https://forums.realmacsoftware.com/t/html5-video-that-remembers-where-a-user-left-off/17068/1 "2017-11-10T01:01:15Z")

</div>

Is there a simple way to accomplish this. I generally use Joe’s HTML5 Video stack which works great. But as my topic suggests I’m looking for a way for longer clips to remember where a user left them if that same user come back to the clip at a later time?

Thanks for any thoughts.

---

<div class="post-metadata">

**Author:** ![BrandonCorlett](https://avatars.discourse-cdn.com/v4/letter/b/67e7ee/32.png) [@BrandonCorlett](https://forums.realmacsoftware.com/u/BrandonCorlett)\
**Post date:** [November 10, 2017, 3:59pm UTC](https://forums.realmacsoftware.com/t/html5-video-that-remembers-where-a-user-left-off/17068/2 "2017-11-10T15:59:48Z")

</div>

There are a couple ways you could approach this.

Can you be more specific as to how this will be used so that the best solution can be proposed?

---

<div class="post-metadata">

**Author:** ![adman17](https://avatars.discourse-cdn.com/v4/letter/a/5f9b8f/32.png) [@adman17](https://forums.realmacsoftware.com/u/adman17)\
**Post date:** [November 10, 2017, 4:29pm UTC](https://forums.realmacsoftware.com/t/html5-video-that-remembers-where-a-user-left-off/17068/3 "2017-11-10T16:29:47Z")

</div>

Thanks Brandon. Pretty basic really. Building a site with thumbnail images that link to video files. Any navigation away from that video page and then back re-starts the clip. Was just hoping there was an easy way to have the last position in the clip remembered so it could be resumed.

---

<div class="post-metadata">

**Author:** ![BrandonCorlett](https://avatars.discourse-cdn.com/v4/letter/b/67e7ee/32.png) [@BrandonCorlett](https://forums.realmacsoftware.com/u/BrandonCorlett)\
**Post date:** [November 10, 2017, 9:47pm UTC](https://forums.realmacsoftware.com/t/html5-video-that-remembers-where-a-user-left-off/17068/4 "2017-11-10T21:47:58Z")

</div>

I’m on my phone at the moment, but to get the ball rolling I can describe the type of solution would imagine.

You can use JS to get the current time of the video. You can then post upper current time to a PHP script that will save it as a session variable.

When you load a page again you use the session variable to start the video.

Alternatively, you could use cookies instead of session-variables.

[https://www.w3schools.com/tags/av\_prop\_currenttime.asp](https://www.w3schools.com/tags/av_prop_currenttime.asp)

---

<div class="post-metadata">

**Author:** ![instacks](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/instacks/32/23339_2.png) [@instacks](https://forums.realmacsoftware.com/u/instacks)\
**Post date:** [November 10, 2017, 10:35pm UTC](https://forums.realmacsoftware.com/t/html5-video-that-remembers-where-a-user-left-off/17068/5 "2017-11-10T22:35:33Z")

</div>

> [@BrandonCorlett](#):
>
> You can use

… He asked for a simple way …

---

<div class="post-metadata">

**Author:** ![BrandonCorlett](https://avatars.discourse-cdn.com/v4/letter/b/67e7ee/32.png) [@BrandonCorlett](https://forums.realmacsoftware.com/u/BrandonCorlett)\
**Post date:** [November 10, 2017, 11:21pm UTC](https://forums.realmacsoftware.com/t/html5-video-that-remembers-where-a-user-left-off/17068/6 "2017-11-10T23:21:12Z")

</div>

Simple is relative and so far it is the simplest proposed solution. 😁

---

<div class="post-metadata">

**Author:** ![adman17](https://avatars.discourse-cdn.com/v4/letter/a/5f9b8f/32.png) [@adman17](https://forums.realmacsoftware.com/u/adman17)\
**Post date:** [November 11, 2017, 1:37am UTC](https://forums.realmacsoftware.com/t/html5-video-that-remembers-where-a-user-left-off/17068/7 "2017-11-11T01:37:14Z")

</div>

Thanks Guys,

Brandon, your solution is a bit above my pay grade though I’m certainly willing to take a whack at it after doing some research. I guess I was kind of hoping Joe Workman would just add a click box on the Stack that says “Resume” or “Start from Beginning”. I can hope…

---

<div class="post-metadata">

**Author:** ![BrandonCorlett](https://avatars.discourse-cdn.com/v4/letter/b/67e7ee/32.png) [@BrandonCorlett](https://forums.realmacsoftware.com/u/BrandonCorlett)\
**Post date:** [November 11, 2017, 3:22pm UTC](https://forums.realmacsoftware.com/t/html5-video-that-remembers-where-a-user-left-off/17068/8 "2017-11-11T15:22:26Z")

</div>

> [@adman17](#):
>
> add a click box on the Stack that says “Resume” or “Start from Beginning”.

😉 that’s why I said I would “get the ball rolling” in hopes that if the blueprint is laid out then someone may pick it up and run with it.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/system/32/25301_2.png) [@system](https://forums.realmacsoftware.com/u/system)\
**Post date:** [November 17, 2017, 3:22pm UTC](https://forums.realmacsoftware.com/t/html5-video-that-remembers-where-a-user-left-off/17068/9 "2017-11-17T15:22:31Z")

</div>

This topic was automatically closed 6 days after the last reply. New replies are no longer allowed.
