aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/assets/player/peertube-videojs-typings.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/assets/player/peertube-videojs-typings.ts')
-rw-r--r--client/src/assets/player/peertube-videojs-typings.ts9
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
1import { HlsConfig, Level } from 'hls.js' 4import { HlsConfig, Level } from 'hls.js'
2import videojs from 'video.js' 5import videojs from 'video.js'
3import { VideoFile, VideoPlaylist, VideoPlaylistElement } from '@shared/models' 6import { VideoFile, VideoPlaylist, VideoPlaylistElement } from '@shared/models'
@@ -93,7 +96,7 @@ type VideoJSCaption = {
93} 96}
94 97
95type UserWatching = { 98type 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
168type LoadedQualityData = { 171type 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
179type ResolutionUpdateData = { 182type ResolutionUpdateData = {
180 auto: boolean, 183 auto: boolean
181 resolutionId: number 184 resolutionId: number
182 id?: number 185 id?: number
183} 186}