Watched video icon #39732
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
It would be nice to have an icon that show if a video was already watched.
Like a reminder of where you left off last time you were watching training videos.
Changed status to: 'Open'
Added subscriber: @fsiddi
Added subscriber: @brita
and how to work out what videos/entire trainings were watched prior to this being implemented?
Added subscriber: @Nicekiwi
It wouldn't be that hard to do, depending on how the video and user data is stored. There could be other implementations, but with MongoDB I would setup an object in the User's collection called "videoProgress" or similar, and save key/value pairs of the VideoID and the progress a users has gotten through the video.
Then when the user is logged in that object will be available, so when rendering the videos on the page check each VideoID against a matching ID in the array and the percentage inside it and display the appropriate icon "Unwatched", "Started (the percentage watched)%" and "Finished". Maybe a gray circle for "Unwatched", the percentage for "Started" and a gray tick for "Finished".
While the user is watching a video save their progress as a percentage every 10-20 seconds or so.
It should be relatively easy to figure out the percentage watched form the start and end times of the video relative to the current position.
That's going into more detail than required :P but could easily dumb it down.
Thats how I'd do it with NodeJS/MongoDB, but almost as easy with PHP or similar.
Hey there,
thanks for the suggestion!
Changed status from 'Open' to: 'Archived'