diff options
Diffstat (limited to 'client/src/assets/player/peertube-videojs-typings.ts')
-rw-r--r-- | client/src/assets/player/peertube-videojs-typings.ts | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/client/src/assets/player/peertube-videojs-typings.ts b/client/src/assets/player/peertube-videojs-typings.ts index fff992a6f..79a5a6c4d 100644 --- a/client/src/assets/player/peertube-videojs-typings.ts +++ b/client/src/assets/player/peertube-videojs-typings.ts | |||
@@ -4,12 +4,15 @@ import * as videojs from 'video.js' | |||
4 | 4 | ||
5 | import { VideoFile } from '../../../../shared/models/videos/video.model' | 5 | import { VideoFile } from '../../../../shared/models/videos/video.model' |
6 | import { PeerTubePlugin } from './peertube-plugin' | 6 | import { PeerTubePlugin } from './peertube-plugin' |
7 | import { WebTorrentPlugin } from './webtorrent-plugin' | 7 | import { WebTorrentPlugin } from './webtorrent/webtorrent-plugin' |
8 | import { P2pMediaLoaderPlugin } from './p2p-media-loader/p2p-media-loader-plugin' | ||
9 | import { PlayerMode } from './peertube-player-manager' | ||
8 | 10 | ||
9 | declare namespace videojs { | 11 | declare namespace videojs { |
10 | interface Player { | 12 | interface Player { |
11 | peertube (): PeerTubePlugin | 13 | peertube (): PeerTubePlugin |
12 | webtorrent (): WebTorrentPlugin | 14 | webtorrent (): WebTorrentPlugin |
15 | p2pMediaLoader (): P2pMediaLoaderPlugin | ||
13 | } | 16 | } |
14 | } | 17 | } |
15 | 18 | ||
@@ -33,6 +36,8 @@ type UserWatching = { | |||
33 | } | 36 | } |
34 | 37 | ||
35 | type PeerTubePluginOptions = { | 38 | type PeerTubePluginOptions = { |
39 | mode: PlayerMode | ||
40 | |||
36 | autoplay: boolean | 41 | autoplay: boolean |
37 | videoViewUrl: string | 42 | videoViewUrl: string |
38 | videoDuration: number | 43 | videoDuration: number |
@@ -54,6 +59,7 @@ type WebtorrentPluginOptions = { | |||
54 | } | 59 | } |
55 | 60 | ||
56 | type P2PMediaLoaderPluginOptions = { | 61 | type P2PMediaLoaderPluginOptions = { |
62 | redundancyBaseUrls: string[] | ||
57 | type: string | 63 | type: string |
58 | src: string | 64 | src: string |
59 | } | 65 | } |
@@ -91,6 +97,13 @@ type AutoResolutionUpdateData = { | |||
91 | } | 97 | } |
92 | 98 | ||
93 | type PlayerNetworkInfo = { | 99 | type PlayerNetworkInfo = { |
100 | http: { | ||
101 | downloadSpeed: number | ||
102 | uploadSpeed: number | ||
103 | downloaded: number | ||
104 | uploaded: number | ||
105 | } | ||
106 | |||
94 | p2p: { | 107 | p2p: { |
95 | downloadSpeed: number | 108 | downloadSpeed: number |
96 | uploadSpeed: number | 109 | uploadSpeed: number |