aboutsummaryrefslogtreecommitdiffhomepage
path: root/client
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-08-21 13:50:04 +0200
committerChocobozzz <chocobozzz@cpy.re>2020-08-21 15:39:51 +0200
commit0cd6ffc09cd76951fea3d861a6bda7f5984cb9d2 (patch)
treebf4d59fe8d1ae871bf38a792cbfc1a47b716831d /client
parent79f392a6578f67d74da3dbf883a9f4b40c35124b (diff)
downloadPeerTube-0cd6ffc09cd76951fea3d861a6bda7f5984cb9d2.tar.gz
PeerTube-0cd6ffc09cd76951fea3d861a6bda7f5984cb9d2.tar.zst
PeerTube-0cd6ffc09cd76951fea3d861a6bda7f5984cb9d2.zip
Send videojs to action player hooks
Diffstat (limited to 'client')
-rw-r--r--client/src/app/+videos/+video-watch/video-watch.component.ts2
-rw-r--r--client/src/standalone/videos/embed.ts2
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 {
548 this.zone.run(() => this.theaterEnabled = enabled) 548 this.zone.run(() => this.theaterEnabled = enabled)
549 }) 549 })
550 550
551 this.hooks.runAction('action:video-watch.player.loaded', 'video-watch', { player: this.player }) 551 this.hooks.runAction('action:video-watch.player.loaded', 'video-watch', { player: this.player, videojs })
552 }) 552 })
553 553
554 this.setVideoDescriptionHTML() 554 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 {
588 }) 588 })
589 } 589 }
590 590
591 this.runHook('action:embed.player.loaded', undefined, { player: this.player }) 591 this.runHook('action:embed.player.loaded', undefined, { player: this.player, videojs })
592 } 592 }
593 593
594 private async initCore () { 594 private async initCore () {