1
0
Fork 0

Add playlist and video in watch action hook

This commit is contained in:
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

View file

@ -565,7 +565,12 @@ export class VideoWatchComponent implements OnInit, OnDestroy {
this.setOpenGraphTags() this.setOpenGraphTags()
this.checkUserRating() 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) { private async buildPlayer (urlOptions: URLOptions) {