From b211106695bb82f6c32e53306081b5262c3d109d Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 24 Mar 2022 13:36:47 +0100 Subject: Support video views/viewers stats in server * Add "currentTime" and "event" body params to view endpoint * Merge watching and view endpoints * Introduce WatchAction AP activity * Add tables to store viewer information of local videos * Add endpoints to fetch video views/viewers stats of local videos * Refactor views/viewers handlers * Support "views" and "viewers" counters for both VOD and live videos --- shared/models/videos/index.ts | 2 ++ 1 file changed, 2 insertions(+) (limited to 'shared/models/videos/index.ts') diff --git a/shared/models/videos/index.ts b/shared/models/videos/index.ts index 705e8d0ff..05497bda1 100644 --- a/shared/models/videos/index.ts +++ b/shared/models/videos/index.ts @@ -9,6 +9,7 @@ export * from './file' export * from './import' export * from './playlist' export * from './rate' +export * from './stats' export * from './transcoding' export * from './nsfw-policy.type' @@ -32,5 +33,6 @@ export * from './video-streaming-playlist.model' export * from './video-streaming-playlist.type' export * from './video-update.model' +export * from './video-view.model' export * from './video.model' export * from './video-create-result.model' -- cgit v1.2.3