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
}
for (let i = 0; i < qualityLevels.length; i++) {
- const q = this.player.qualityLevels[i]
- if (q.height === resolutionId) qualityLevels.selectedIndex = i
+ const q = qualityLevels[i]
+ if (q.height === resolutionId) qualityLevels.selectedIndex_ = i
}
}
}