import { logger, loggerTagsFactory } from '@server/helpers/logger'
import { MVideo, MVideoImmutable } from '@server/types/models'
import { VideoViewEvent } from '@shared/models'
-import { VideoViewerCounters, VideoViewerStats, VideoViews } from './shared'
+import { VideoScope, VideoViewerCounters, VideoViewerStats, VideoViews, ViewerScope } from './shared'
/**
* If processing a local view:
return this.videoViewerCounters.getViewers(video)
}
+ getTotalViewers (options: {
+ viewerScope: ViewerScope
+ videoScope: VideoScope
+ }) {
+ return this.videoViewerCounters.getTotalViewers(options)
+ }
+
buildViewerExpireTime () {
return this.videoViewerCounters.buildViewerExpireTime()
}