Add playlist and video in watch action hook

pull/3747/head
Chocobozzz 2021-04-09 10:54:34 +02:00
parent bae9303726
commit 55b84d5346
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 6 additions and 1 deletions

View File

@ -565,7 +565,12 @@ export class VideoWatchComponent implements OnInit, OnDestroy {
this.setOpenGraphTags()
this.checkUserRating()
this.hooks.runAction('action:video-watch.video.loaded', 'video-watch', { videojs })
const hookOptions = {
videojs,
video: this.video,
playlist: this.playlist
}
this.hooks.runAction('action:video-watch.video.loaded', 'video-watch', hookOptions)
}
private async buildPlayer (urlOptions: URLOptions) {