diff options
author | Chocobozzz <me@florianbigard.com> | 2018-01-09 15:40:46 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-01-09 15:40:46 +0100 |
commit | d77014491b339b4dcfab95c05507dd5f579a6d7d (patch) | |
tree | d239ecf48f5ad9d3dcfdaf1a237fe974273e2409 /client/src/app | |
parent | a22bfc3ebc9f80088035774c6cfca4bd5707acd3 (diff) | |
download | PeerTube-d77014491b339b4dcfab95c05507dd5f579a6d7d.tar.gz PeerTube-d77014491b339b4dcfab95c05507dd5f579a6d7d.tar.zst PeerTube-d77014491b339b4dcfab95c05507dd5f579a6d7d.zip |
Add hotkeys in video player
Double click for full screen
Diffstat (limited to 'client/src/app')
-rw-r--r-- | client/src/app/videos/+video-watch/video-watch.component.ts | 4 |
1 files changed, 3 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 6f5fe0b97..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' | |||
5 | import { Observable } from 'rxjs/Observable' | 5 | import { Observable } from 'rxjs/Observable' |
6 | import { Subscription } from 'rxjs/Subscription' | 6 | import { Subscription } from 'rxjs/Subscription' |
7 | import * as videojs from 'video.js' | 7 | import * as videojs from 'video.js' |
8 | import 'videojs-hotkeys' | ||
8 | import { UserVideoRateType, VideoRateType } from '../../../../../shared' | 9 | import { UserVideoRateType, VideoRateType } from '../../../../../shared' |
9 | import '../../../assets/player/peertube-videojs-plugin' | 10 | import '../../../assets/player/peertube-videojs-plugin' |
10 | import { AuthService, ConfirmService } from '../../core' | 11 | import { AuthService, ConfirmService } from '../../core' |
@@ -327,7 +328,8 @@ export class VideoWatchComponent implements OnInit, OnDestroy { | |||
327 | videoFiles: this.video.files, | 328 | videoFiles: this.video.files, |
328 | playerElement: this.playerElement, | 329 | playerElement: this.playerElement, |
329 | peerTubeLink: false | 330 | peerTubeLink: false |
330 | } | 331 | }, |
332 | hotkeys: {} | ||
331 | } | 333 | } |
332 | } | 334 | } |
333 | 335 | ||