mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
Add playlist and video in watch action hook
This commit is contained in:
parent
bae9303726
commit
55b84d5346
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user