From 0cd6ffc09cd76951fea3d861a6bda7f5984cb9d2 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 21 Aug 2020 13:50:04 +0200 Subject: [PATCH] Send videojs to action player hooks --- client/src/app/+videos/+video-watch/video-watch.component.ts | 2 +- client/src/standalone/videos/embed.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/app/+videos/+video-watch/video-watch.component.ts b/client/src/app/+videos/+video-watch/video-watch.component.ts index 7ff860e79..0a61227a8 100644 --- a/client/src/app/+videos/+video-watch/video-watch.component.ts +++ b/client/src/app/+videos/+video-watch/video-watch.component.ts @@ -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() diff --git a/client/src/standalone/videos/embed.ts b/client/src/standalone/videos/embed.ts index c79471005..af98a1561 100644 --- a/client/src/standalone/videos/embed.ts +++ b/client/src/standalone/videos/embed.ts @@ -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 () {