diff options
author | Chocobozzz <me@florianbigard.com> | 2020-02-03 13:33:42 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-02-03 13:33:42 +0100 |
commit | abb3097e814af0f22477aea68310e85671230942 (patch) | |
tree | b88b2c835f1d437aef0d822d9985961858c15067 /client/src/assets | |
parent | 598edb8af1cc7e5ea3ead1ec9c96c4853b90be36 (diff) | |
download | PeerTube-abb3097e814af0f22477aea68310e85671230942.tar.gz PeerTube-abb3097e814af0f22477aea68310e85671230942.tar.zst PeerTube-abb3097e814af0f22477aea68310e85671230942.zip |
Improve embed title background opacity
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 |