aboutsummaryrefslogtreecommitdiffhomepage
path: root/client
diff options
context:
space:
mode:
Diffstat (limited to 'client')
-rw-r--r--client/src/app/videos/+video-watch/video-watch.component.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/client/src/app/videos/+video-watch/video-watch.component.ts b/client/src/app/videos/+video-watch/video-watch.component.ts
index 1e7991738..af4afd456 100644
--- a/client/src/app/videos/+video-watch/video-watch.component.ts
+++ b/client/src/app/videos/+video-watch/video-watch.component.ts
@@ -20,6 +20,7 @@ import { environment } from '../../../environments/environment'
20import { VideoCaptionService } from '@app/shared/video-caption' 20import { VideoCaptionService } from '@app/shared/video-caption'
21import { MarkdownService } from '@app/shared/renderer' 21import { MarkdownService } from '@app/shared/renderer'
22import { 22import {
23 videojs,
23 CustomizationOptions, 24 CustomizationOptions,
24 P2PMediaLoaderOptions, 25 P2PMediaLoaderOptions,
25 PeertubePlayerManager, 26 PeertubePlayerManager,
@@ -500,6 +501,8 @@ export class VideoWatchComponent implements OnInit, OnDestroy {
500 this.player.on('theaterChange', (_: any, enabled: boolean) => { 501 this.player.on('theaterChange', (_: any, enabled: boolean) => {
501 this.zone.run(() => this.theaterEnabled = enabled) 502 this.zone.run(() => this.theaterEnabled = enabled)
502 }) 503 })
504
505 this.hooks.runAction('action:video-watch.player.loaded', 'video-watch', { player: this.player })
503 }) 506 })
504 507
505 this.setVideoDescriptionHTML() 508 this.setVideoDescriptionHTML()
@@ -508,7 +511,7 @@ export class VideoWatchComponent implements OnInit, OnDestroy {
508 this.setOpenGraphTags() 511 this.setOpenGraphTags()
509 this.checkUserRating() 512 this.checkUserRating()
510 513
511 this.hooks.runAction('action:video-watch.video.loaded', 'video-watch') 514 this.hooks.runAction('action:video-watch.video.loaded', 'video-watch', { videojs })
512 } 515 }
513 516
514 private autoplayNext () { 517 private autoplayNext () {