class StatsForNerdsPlugin extends Plugin {
private statsCard: StatsCard
- constructor (player: videojs.Player, options: Partial<StatsCardOptions> = {}) {
+ constructor (player: videojs.Player, options: StatsCardOptions) {
const settings = {
...options
}
player.addChild(this.statsCard, settings)
}
- show (options?: StatsCardOptions) {
- this.statsCard.show(options)
+ show () {
+ this.statsCard.show()
}
}