aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src
diff options
context:
space:
mode:
authorRigel Kent <sendmemail@rigelk.eu>2019-11-18 09:55:23 +0100
committerChocobozzz <me@florianbigard.com>2019-11-18 10:12:23 +0100
commit5f85f8aa1c7a732a44a873de5f8f7aa41953a8f8 (patch)
treebec4060ae49b4a40ab2951748b9c9d8b46a07318 /client/src
parent76d5770b7a6c12802287dff401b455b26ad08266 (diff)
downloadPeerTube-5f85f8aa1c7a732a44a873de5f8f7aa41953a8f8.tar.gz
PeerTube-5f85f8aa1c7a732a44a873de5f8f7aa41953a8f8.tar.zst
PeerTube-5f85f8aa1c7a732a44a873de5f8f7aa41953a8f8.zip
Video-watch hooks modifications for videojs
Diffstat (limited to 'client/src')
-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 () {