User Tools

Site Tools


hxmc:videoplayer

This is an old revision of the document!


Video Player

Goal: player remembering video position so that a user can resume the player where they left off

Imp:

  • using the video.js api a JavaScript function can run every 5 secs with a call to player.currentTime()
  • using the mysql table key fileId and userId a ajax call could store the position in a database table.
  • ajax call could run inside the function that executes player.currentTime()

Position Table

Field Type Field Name
int fileId
int userId
float player_pos
hxmc/videoplayer.1382191577.txt.gz · Last modified: 2013/10/19 09:06 by tschulz