mirror of https://github.com/Chocobozzz/PeerTube
Add playlist and video in watch action hook
parent
bae9303726
commit
55b84d5346
|
@ -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 New Issue