mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-04 18:29:39 +02:00
improve beacon
This commit is contained in:
parent
0202e787bf
commit
f4a961c393
1 changed files with 1 additions and 0 deletions
|
@ -459,6 +459,7 @@ function addViewBeacon() {
|
|||
if (typeof mediaId !== 'undefined' && typeof playerCurrentTime !== 'undefined' && typeof seconds_watching_video !== 'undefined') {
|
||||
console.log('addViewBeacon will be sent', mediaId, playerCurrentTime, seconds_watching_video);
|
||||
|
||||
var url = webSiteRootURL + 'objects/videoAddViewCount.json.php?PHPSESSID=' + PHPSESSID;
|
||||
let data = new FormData();
|
||||
data.append('id', mediaId);
|
||||
data.append('currentTime', playerCurrentTime);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue