Add playlist and video in watch action hook
This commit is contained in:
parent
bae9303726
commit
55b84d5346
1 changed files with 6 additions and 1 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue