diff options
Diffstat (limited to 'client/src/assets/player/shared/metrics/metrics-plugin.ts')
-rw-r--r-- | client/src/assets/player/shared/metrics/metrics-plugin.ts | 4 |
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 @@ | |||
1 | import debug from 'debug' | 1 | import debug from 'debug' |
2 | import videojs from 'video.js' | 2 | import videojs from 'video.js' |
3 | import { PlaybackMetricCreate, VideoResolutionType } from '@peertube/peertube-models' | ||
3 | import { logger } from '@root-helpers/logger' | 4 | import { logger } from '@root-helpers/logger' |
4 | import { PlaybackMetricCreate } from '../../../../../../shared/models' | ||
5 | import { MetricsPluginOptions, PlayerNetworkInfo } from '../../types' | 5 | import { MetricsPluginOptions, PlayerNetworkInfo } from '../../types' |
6 | 6 | ||
7 | const debugLogger = debug('peertube:player:metrics') | 7 | const 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(), |