taobear68 / rmvod

RIBBBITmedia VideoOnDemand
GNU General Public License v3.0
0 stars 0 forks source link

Add recent play info to artifact details. #32

Open taobear68 opened 3 months ago

taobear68 commented 3 months ago

New logging table "client_play_progress" For logged-in users, capture clientid, artifactid, seriesaid, lastreportdts, progressmins, completetf for all playbacks of artifacts with positive integer 'runmins' value more than 5 minutes from the end. Any playback which makes it into the last 5 minutes will set 'completetf' to 'true'

Only log one row for a tvseries, and just update the artifactid, progressmins, and completetf as necessary

For movies, if it is logged in client_play_progress: If 'completetf' is true, display 'Watch again" button; if 'completetf' is false, display "Continue watching" button to resume play at 'progressmins'

For tvseries, if it is logged in client_play_progress: If "completetf" is true, and there is a next episode, display "Play next episode"; if 'completetf' is false, display "Resume most recent episode", "Play most recent episode from the beginning", and "Play next episode" buttons