1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-06 03:50:26 +02:00

Server: implement video views

This commit is contained in:
Chocobozzz 2017-02-26 18:57:33 +01:00
parent 9e167724f7
commit e4c87ec269
15 changed files with 612 additions and 48 deletions

View file

@ -333,6 +333,9 @@ function getVideo (req, res, next) {
// For example, only add a view when a user watch a video during 30s etc
friends.quickAndDirtyUpdateVideoToFriends(videoInstance.id, constants.REQUEST_VIDEO_QADU_TYPES.VIEWS)
})
} else {
// Just send the event to our friends
friends.addEventToRemoteVideo(videoInstance.id, constants.REQUEST_VIDEO_EVENT_TYPES.VIEWS)
}
// Do not wait the view system