X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fvideos%2F%2Bvideo-watch%2Fvideo-watch.component.ts;h=7929c1fa178454430b6f14d95b448064290e7643;hb=d77014491b339b4dcfab95c05507dd5f579a6d7d;hp=01e4bbf4af11c8b18445f5e7467d37888359f240;hpb=57a49263e48739c31cd339730ac4cb24e3d5d723;p=github%2FChocobozzz%2FPeerTube.git 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 01e4bbf4a..7929c1fa1 100644 --- a/client/src/app/videos/+video-watch/video-watch.component.ts +++ b/client/src/app/videos/+video-watch/video-watch.component.ts @@ -5,6 +5,7 @@ import { NotificationsService } from 'angular2-notifications' import { Observable } from 'rxjs/Observable' import { Subscription } from 'rxjs/Subscription' import * as videojs from 'video.js' +import 'videojs-hotkeys' import { UserVideoRateType, VideoRateType } from '../../../../../shared' import '../../../assets/player/peertube-videojs-plugin' import { AuthService, ConfirmService } from '../../core' @@ -28,7 +29,6 @@ export class VideoWatchComponent implements OnInit, OnDestroy { @ViewChild('videoShareModal') videoShareModal: VideoShareComponent @ViewChild('videoReportModal') videoReportModal: VideoReportComponent - otherVideos: Video[] = [] otherVideosDisplayed: Video[] = [] error = false @@ -47,6 +47,7 @@ export class VideoWatchComponent implements OnInit, OnDestroy { videoHTMLDescription = '' likesBarTooltipText = '' + private otherVideos: Video[] = [] private paramsSub: Subscription constructor ( @@ -326,9 +327,9 @@ export class VideoWatchComponent implements OnInit, OnDestroy { peertube: { videoFiles: this.video.files, playerElement: this.playerElement, - autoplay: this.isAutoplay(), peerTubeLink: false - } + }, + hotkeys: {} } }