diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-12-05 10:44:11 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-12-05 11:04:15 +0100 |
commit | be6a4802326b1748e85c0d6fdadf06e70e6ecbb0 (patch) | |
tree | c096a9e3476b7dbeb0f197c25165557f1c51c70f /client/src/app/videos/+video-watch/video-watch.component.ts | |
parent | 62e23e40dad8fbd6148a9201fba2e73ced3f1877 (diff) | |
download | PeerTube-be6a4802326b1748e85c0d6fdadf06e70e6ecbb0.tar.gz PeerTube-be6a4802326b1748e85c0d6fdadf06e70e6ecbb0.tar.zst PeerTube-be6a4802326b1748e85c0d6fdadf06e70e6ecbb0.zip |
Design video player
Diffstat (limited to 'client/src/app/videos/+video-watch/video-watch.component.ts')
-rw-r--r-- | client/src/app/videos/+video-watch/video-watch.component.ts | 11 |
1 files changed, 1 insertions, 10 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 eac676be8..48842602e 100644 --- a/client/src/app/videos/+video-watch/video-watch.component.ts +++ b/client/src/app/videos/+video-watch/video-watch.component.ts | |||
@@ -26,13 +26,10 @@ export class VideoWatchComponent implements OnInit, OnDestroy { | |||
26 | @ViewChild('videoShareModal') videoShareModal: VideoShareComponent | 26 | @ViewChild('videoShareModal') videoShareModal: VideoShareComponent |
27 | @ViewChild('videoReportModal') videoReportModal: VideoReportComponent | 27 | @ViewChild('videoReportModal') videoReportModal: VideoReportComponent |
28 | 28 | ||
29 | downloadSpeed: number | ||
30 | error = false | 29 | error = false |
31 | loading = false | 30 | loading = false |
32 | numPeers: number | ||
33 | player: videojs.Player | 31 | player: videojs.Player |
34 | playerElement: HTMLMediaElement | 32 | playerElement: HTMLMediaElement |
35 | uploadSpeed: number | ||
36 | userRating: UserVideoRateType = null | 33 | userRating: UserVideoRateType = null |
37 | video: VideoDetails = null | 34 | video: VideoDetails = null |
38 | videoPlayerLoaded = false | 35 | videoPlayerLoaded = false |
@@ -283,7 +280,7 @@ export class VideoWatchComponent implements OnInit, OnDestroy { | |||
283 | return this.router.navigate([ '/videos/list' ]) | 280 | return this.router.navigate([ '/videos/list' ]) |
284 | } | 281 | } |
285 | 282 | ||
286 | this.playerElement = this.elementRef.nativeElement.querySelector('#video-container') | 283 | this.playerElement = this.elementRef.nativeElement.querySelector('#video-element') |
287 | 284 | ||
288 | const videojsOptions = { | 285 | const videojsOptions = { |
289 | controls: true, | 286 | controls: true, |
@@ -306,12 +303,6 @@ export class VideoWatchComponent implements OnInit, OnDestroy { | |||
306 | this.on('customError', (event, data) => { | 303 | this.on('customError', (event, data) => { |
307 | self.handleError(data.err) | 304 | self.handleError(data.err) |
308 | }) | 305 | }) |
309 | |||
310 | this.on('torrentInfo', (event, data) => { | ||
311 | self.downloadSpeed = data.downloadSpeed | ||
312 | self.numPeers = data.numPeers | ||
313 | self.uploadSpeed = data.uploadSpeed | ||
314 | }) | ||
315 | }) | 306 | }) |
316 | 307 | ||
317 | this.setVideoDescriptionHTML() | 308 | this.setVideoDescriptionHTML() |