Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Send videojs to action player hooks

Chocobozzz0cd6ffc09cd7
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 7ff860e790..0a61227a89 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 c79471005f..af98a1561d 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 () {