From abb3097e814af0f22477aea68310e85671230942 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 3 Feb 2020 13:33:42 +0100 Subject: Improve embed title background opacity --- client/src/assets/player/peertube-videojs-typings.ts | 2 ++ client/src/assets/player/webtorrent/webtorrent-plugin.ts | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'client/src/assets/player') 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' { } audioTracks (): AudioTrackList + + dock (options: { title: string, description: string }): void } } 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 = { const Plugin = videojs.getPlugin('plugin') class WebTorrentPlugin extends Plugin { + readonly videoFiles: VideoFile[] + private readonly playerElement: HTMLVideoElement private readonly autoplay: boolean = false private readonly startTime: number = 0 private readonly savePlayerSrcFunction: VideoJsPlayer['src'] - private readonly videoFiles: VideoFile[] private readonly videoDuration: number private readonly CONSTANTS = { INFO_SCHEDULER: 1000, // Don't change this -- cgit v1.2.3