mirror of https://github.com/Chocobozzz/PeerTube
refactor(wt-plugin): tighten TS definitions
parent
9110f52c4f
commit
cdca521e15
|
@ -68,7 +68,7 @@ class WebTorrentPlugin extends Plugin {
|
||||||
|
|
||||||
private downloadSpeeds: number[] = []
|
private downloadSpeeds: number[] = []
|
||||||
|
|
||||||
constructor (player: videojs.Player, options?: WebtorrentPluginOptions) {
|
constructor (player: videojs.Player, options: WebtorrentPluginOptions) {
|
||||||
super(player)
|
super(player)
|
||||||
|
|
||||||
this.startTime = timeToInt(options.startTime)
|
this.startTime = timeToInt(options.startTime)
|
||||||
|
@ -129,7 +129,7 @@ class WebTorrentPlugin extends Plugin {
|
||||||
: this.pickAverageVideoFile()
|
: this.pickAverageVideoFile()
|
||||||
}
|
}
|
||||||
|
|
||||||
updateVideoFile (
|
private updateVideoFile (
|
||||||
videoFile: VideoFile,
|
videoFile: VideoFile,
|
||||||
options: {
|
options: {
|
||||||
forcePlay?: boolean,
|
forcePlay?: boolean,
|
||||||
|
|
Loading…
Reference in New Issue