diff options
Diffstat (limited to 'client/src/assets/player/peertube-videojs-typings.ts')
-rw-r--r-- | client/src/assets/player/peertube-videojs-typings.ts | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/client/src/assets/player/peertube-videojs-typings.ts b/client/src/assets/player/peertube-videojs-typings.ts index f0eb129d4..97828c802 100644 --- a/client/src/assets/player/peertube-videojs-typings.ts +++ b/client/src/assets/player/peertube-videojs-typings.ts | |||
@@ -1,3 +1,6 @@ | |||
1 | // FIXME: lint | ||
2 | /* eslint-disable @typescript-eslint/ban-types */ | ||
3 | |||
1 | import { HlsConfig, Level } from 'hls.js' | 4 | import { HlsConfig, Level } from 'hls.js' |
2 | import videojs from 'video.js' | 5 | import videojs from 'video.js' |
3 | import { VideoFile, VideoPlaylist, VideoPlaylistElement } from '@shared/models' | 6 | import { VideoFile, VideoPlaylist, VideoPlaylistElement } from '@shared/models' |
@@ -93,7 +96,7 @@ type VideoJSCaption = { | |||
93 | } | 96 | } |
94 | 97 | ||
95 | type UserWatching = { | 98 | type UserWatching = { |
96 | url: string, | 99 | url: string |
97 | authorizationHeader: string | 100 | authorizationHeader: string |
98 | } | 101 | } |
99 | 102 | ||
@@ -166,7 +169,7 @@ type VideoJSPluginOptions = { | |||
166 | } | 169 | } |
167 | 170 | ||
168 | type LoadedQualityData = { | 171 | type LoadedQualityData = { |
169 | qualitySwitchCallback: Function, | 172 | qualitySwitchCallback: (resolutionId: number, type: 'video') => void |
170 | qualityData: { | 173 | qualityData: { |
171 | video: { | 174 | video: { |
172 | id: number | 175 | id: number |
@@ -177,7 +180,7 @@ type LoadedQualityData = { | |||
177 | } | 180 | } |
178 | 181 | ||
179 | type ResolutionUpdateData = { | 182 | type ResolutionUpdateData = { |
180 | auto: boolean, | 183 | auto: boolean |
181 | resolutionId: number | 184 | resolutionId: number |
182 | id?: number | 185 | id?: number |
183 | } | 186 | } |