aboutsummaryrefslogtreecommitdiffhomepage
path: root/client
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-04-09 10:54:34 +0200
committerChocobozzz <me@florianbigard.com>2021-04-09 10:54:34 +0200
commit55b84d5346f6db35454a1bd102997769021d6470 (patch)
tree71c6be8e7f106f3a763c530cd736eea3f646e031 /client
parentbae930372678692f94601d503eaf7deabaa82a3f (diff)
downloadPeerTube-55b84d5346f6db35454a1bd102997769021d6470.tar.gz
PeerTube-55b84d5346f6db35454a1bd102997769021d6470.tar.zst
PeerTube-55b84d5346f6db35454a1bd102997769021d6470.zip
Add playlist and video in watch action hook
Diffstat (limited to 'client')
-rw-r--r--client/src/app/+videos/+video-watch/video-watch.component.ts7
1 files changed, 6 insertions, 1 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 de5fb4ed0..0c0eaaa78 100644
--- a/client/src/app/+videos/+video-watch/video-watch.component.ts
+++ b/client/src/app/+videos/+video-watch/video-watch.component.ts
@@ -565,7 +565,12 @@ export class VideoWatchComponent implements OnInit, OnDestroy {
565 this.setOpenGraphTags() 565 this.setOpenGraphTags()
566 this.checkUserRating() 566 this.checkUserRating()
567 567
568 this.hooks.runAction('action:video-watch.video.loaded', 'video-watch', { videojs }) 568 const hookOptions = {
569 videojs,
570 video: this.video,
571 playlist: this.playlist
572 }
573 this.hooks.runAction('action:video-watch.video.loaded', 'video-watch', hookOptions)
569 } 574 }
570 575
571 private async buildPlayer (urlOptions: URLOptions) { 576 private async buildPlayer (urlOptions: URLOptions) {