X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fassets%2Fplayer%2Fpeertube-videojs-typings.ts;h=e5259092c6cdfaac0a056d424f0288faada30062;hb=10f26f4203b8cef32778bf3435d8112eaea3c093;hp=b72c4b0f94ee4fa4a0da82a5625629e5b1dd4128;hpb=4572c3d0d92f5b1b79b34dbe2c7b6557a8a5b7e4;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/assets/player/peertube-videojs-typings.ts b/client/src/assets/player/peertube-videojs-typings.ts index b72c4b0f9..e5259092c 100644 --- a/client/src/assets/player/peertube-videojs-typings.ts +++ b/client/src/assets/player/peertube-videojs-typings.ts @@ -106,6 +106,8 @@ type PeerTubePluginOptions = { videoCaptions: VideoJSCaption[] stopTime: number | string + + isLive: boolean } type PlaylistPluginOptions = { @@ -118,6 +120,12 @@ type PlaylistPluginOptions = { onItemClicked: (element: VideoPlaylistElement) => void } +type NextPreviousVideoButtonOptions = { + type: 'next' | 'previous' + handler: Function + isDisabled: () => boolean +} + type WebtorrentPluginOptions = { playerElement: HTMLVideoElement @@ -169,6 +177,8 @@ type AutoResolutionUpdateData = { } type PlayerNetworkInfo = { + source: 'webtorrent' | 'p2p-media-loader' + http: { downloadSpeed: number uploadSpeed: number @@ -194,6 +204,7 @@ type PlaylistItemOptions = { export { PlayerNetworkInfo, PlaylistItemOptions, + NextPreviousVideoButtonOptions, ResolutionUpdateData, AutoResolutionUpdateData, PlaylistPluginOptions,