User Tools

Site Tools


hxmc:videoplayer

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
hxmc:videoplayer [2013/10/19 09:11]
tschulz
hxmc:videoplayer [2013/10/19 09:15] (current)
tschulz [Implementation]
Line 3: Line 3:
   * player remembering video position so that a user can resume the player where they left off   * player remembering video position so that a user can resume the player where they left off
 ===== Implementation ===== ===== Implementation =====
-  * using the video.js api a JavaScript function can run every 5 secs with a call to player.currentTime()+  * using the video.js api a JavaScript function can run every 5 secs with a call to player.currentTime() ​ 
 +  * function will be called **getPlayerTime()**
   * using the mysql table key **fileId** and **userId** a ajax call could store the position in a database table.   * 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() +  * ajax call could run inside the function ​**getPlayerTime()** 
 +  * could use **player.timeupdate** event to run **getPlayerTime()** on a periodic basis.
 ===== Position Table ===== ===== Position Table =====
 ^ Field Type  ^ Field Name ^ ^ Field Type  ^ Field Name ^
hxmc/videoplayer.1382191861.txt.gz · Last modified: 2013/10/19 09:11 by tschulz