mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-05 19:42:38 +02:00
improve beacon
This commit is contained in:
parent
ea184069ac
commit
8cfa614de0
1 changed files with 4 additions and 1 deletions
|
@ -454,7 +454,10 @@ function addView(videos_id, currentTime) {
|
|||
function addViewBeacon() {
|
||||
console.log('addViewBeacon');
|
||||
if (typeof mediaId !== 'undefined' && typeof playerCurrentTime !== 'undefined' && typeof seconds_watching_video !== 'undefined') {
|
||||
|
||||
if(seconds_watching_video<=0){
|
||||
console.log('addViewBeacon seconds_watching_video <= 0 ', seconds_watching_video);
|
||||
return false;
|
||||
}
|
||||
var url = webSiteRootURL + 'objects/videoAddViewCount.json.php?PHPSESSID=' + PHPSESSID;
|
||||
url = addGetParam(url, 'id', mediaId);
|
||||
url = addGetParam(url, 'currentTime', playerCurrentTime);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue