aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/videos/+video-watch/video-watch.component.ts
diff options
context:
space:
mode:
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.ts11
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()