aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/assets/player/shared/metrics/metrics-plugin.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/assets/player/shared/metrics/metrics-plugin.ts')
-rw-r--r--client/src/assets/player/shared/metrics/metrics-plugin.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/src/assets/player/shared/metrics/metrics-plugin.ts b/client/src/assets/player/shared/metrics/metrics-plugin.ts
index 06ca0c2f2..0ad16338c 100644
--- a/client/src/assets/player/shared/metrics/metrics-plugin.ts
+++ b/client/src/assets/player/shared/metrics/metrics-plugin.ts
@@ -1,7 +1,7 @@
1import debug from 'debug' 1import debug from 'debug'
2import videojs from 'video.js' 2import videojs from 'video.js'
3import { PlaybackMetricCreate, VideoResolutionType } from '@peertube/peertube-models'
3import { logger } from '@root-helpers/logger' 4import { logger } from '@root-helpers/logger'
4import { PlaybackMetricCreate } from '../../../../../../shared/models'
5import { MetricsPluginOptions, PlayerNetworkInfo } from '../../types' 5import { MetricsPluginOptions, PlayerNetworkInfo } from '../../types'
6 6
7const debugLogger = debug('peertube:player:metrics') 7const debugLogger = debug('peertube:player:metrics')
@@ -102,7 +102,7 @@ class MetricsPlugin extends Plugin {
102 } 102 }
103 103
104 const body: PlaybackMetricCreate = { 104 const body: PlaybackMetricCreate = {
105 resolution, 105 resolution: resolution as VideoResolutionType,
106 fps, 106 fps,
107 107
108 playerMode: this.options_.mode(), 108 playerMode: this.options_.mode(),