Send videojs to action player hooks

This commit is contained in:
Chocobozzz 2020-08-21 13:50:04 +02:00 committed by Chocobozzz
parent 79f392a657
commit 0cd6ffc09c
2 changed files with 2 additions and 2 deletions

View File

@ -548,7 +548,7 @@ export class VideoWatchComponent implements OnInit, OnDestroy {
this.zone.run(() => this.theaterEnabled = enabled)
})
this.hooks.runAction('action:video-watch.player.loaded', 'video-watch', { player: this.player })
this.hooks.runAction('action:video-watch.player.loaded', 'video-watch', { player: this.player, videojs })
})
this.setVideoDescriptionHTML()

View File

@ -588,7 +588,7 @@ export class PeerTubeEmbed {
})
}
this.runHook('action:embed.player.loaded', undefined, { player: this.player })
this.runHook('action:embed.player.loaded', undefined, { player: this.player, videojs })
}
private async initCore () {