diff options
Diffstat (limited to 'client/src/assets')
-rw-r--r-- | client/src/assets/player/peertube-videojs-typings.ts | 2 | ||||
-rw-r--r-- | client/src/assets/player/webtorrent/webtorrent-plugin.ts | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/client/src/assets/player/peertube-videojs-typings.ts b/client/src/assets/player/peertube-videojs-typings.ts index 8f3d76cac..a4e4c580c 100644 --- a/client/src/assets/player/peertube-videojs-typings.ts +++ b/client/src/assets/player/peertube-videojs-typings.ts | |||
@@ -42,6 +42,8 @@ declare module 'video.js' { | |||
42 | } | 42 | } |
43 | 43 | ||
44 | audioTracks (): AudioTrackList | 44 | audioTracks (): AudioTrackList |
45 | |||
46 | dock (options: { title: string, description: string }): void | ||
45 | } | 47 | } |
46 | } | 48 | } |
47 | 49 | ||
diff --git a/client/src/assets/player/webtorrent/webtorrent-plugin.ts b/client/src/assets/player/webtorrent/webtorrent-plugin.ts index d26fc38fa..bf6b0a718 100644 --- a/client/src/assets/player/webtorrent/webtorrent-plugin.ts +++ b/client/src/assets/player/webtorrent/webtorrent-plugin.ts | |||
@@ -25,12 +25,13 @@ type PlayOptions = { | |||
25 | const Plugin = videojs.getPlugin('plugin') | 25 | const Plugin = videojs.getPlugin('plugin') |
26 | 26 | ||
27 | class WebTorrentPlugin extends Plugin { | 27 | class WebTorrentPlugin extends Plugin { |
28 | readonly videoFiles: VideoFile[] | ||
29 | |||
28 | private readonly playerElement: HTMLVideoElement | 30 | private readonly playerElement: HTMLVideoElement |
29 | 31 | ||
30 | private readonly autoplay: boolean = false | 32 | private readonly autoplay: boolean = false |
31 | private readonly startTime: number = 0 | 33 | private readonly startTime: number = 0 |
32 | private readonly savePlayerSrcFunction: VideoJsPlayer['src'] | 34 | private readonly savePlayerSrcFunction: VideoJsPlayer['src'] |
33 | private readonly videoFiles: VideoFile[] | ||
34 | private readonly videoDuration: number | 35 | private readonly videoDuration: number |
35 | private readonly CONSTANTS = { | 36 | private readonly CONSTANTS = { |
36 | INFO_SCHEDULER: 1000, // Don't change this | 37 | INFO_SCHEDULER: 1000, // Don't change this |