mirror of https://github.com/Chocobozzz/PeerTube
Send videojs to action player hooks
parent
79f392a657
commit
0cd6ffc09c
|
@ -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()
|
||||
|
|
|
@ -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 () {
|
||||
|
|
Loading…
Reference in New Issue