aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+videos/+video-watch/video-watch.component.ts
diff options
context:
space:
mode:
authorkontrollanten <6680299+kontrollanten@users.noreply.github.com>2021-10-12 13:45:55 +0200
committerGitHub <noreply@github.com>2021-10-12 13:45:55 +0200
commitc3bb04413ec05dfe544ec74ffdf2f264975bd121 (patch)
treee7e8ca811e78ccd89009b34d5ccaae2b4b48081f /client/src/app/+videos/+video-watch/video-watch.component.ts
parent8d8a037e3fe9b1d2ccbc4169ce59b13000b59cb0 (diff)
downloadPeerTube-c3bb04413ec05dfe544ec74ffdf2f264975bd121.tar.gz
PeerTube-c3bb04413ec05dfe544ec74ffdf2f264975bd121.tar.zst
PeerTube-c3bb04413ec05dfe544ec74ffdf2f264975bd121.zip
add ...playlist.elements.loaded hook (#4387)
* client: add ...playlist.elements.loaded hook closes #4385 * fix linting error * client: add playlist metadata to video-watch hooks * Prefer using a filter for playlist elements hook Co-authored-by: Chocobozzz <me@florianbigard.com>
Diffstat (limited to 'client/src/app/+videos/+video-watch/video-watch.component.ts')
-rw-r--r--client/src/app/+videos/+video-watch/video-watch.component.ts8
1 files changed, 7 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 acfd46a41..f0d159be3 100644
--- a/client/src/app/+videos/+video-watch/video-watch.component.ts
+++ b/client/src/app/+videos/+video-watch/video-watch.component.ts
@@ -455,7 +455,13 @@ export class VideoWatchComponent implements OnInit, OnDestroy {
455 this.zone.run(() => this.theaterEnabled = enabled) 455 this.zone.run(() => this.theaterEnabled = enabled)
456 }) 456 })
457 457
458 this.hooks.runAction('action:video-watch.player.loaded', 'video-watch', { player: this.player, videojs, video: this.video }) 458 this.hooks.runAction('action:video-watch.player.loaded', 'video-watch', {
459 player: this.player,
460 playlist: this.playlist,
461 playlistPosition: this.playlistPosition,
462 videojs,
463 video: this.video
464 })
459 }) 465 })
460 } 466 }
461 467