aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/videos/video-watch
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-06-11 15:25:36 +0200
committerChocobozzz <florian.bigard@gmail.com>2017-06-11 15:58:27 +0200
commit294f80f21e8a77d25f6fb5f0f26887fb4618ee2e (patch)
tree01e0016e7ae7edfc87e2ba9861436aedce89993b /client/src/app/videos/video-watch
parent1840c2f7c91f5f89602a3683d85b0a9df1454855 (diff)
downloadPeerTube-294f80f21e8a77d25f6fb5f0f26887fb4618ee2e.tar.gz
PeerTube-294f80f21e8a77d25f6fb5f0f26887fb4618ee2e.tar.zst
PeerTube-294f80f21e8a77d25f6fb5f0f26887fb4618ee2e.zip
Bundle webtorrent with webpack. Closes https://github.com/Chocobozzz/PeerTube/issues/50
Diffstat (limited to 'client/src/app/videos/video-watch')
-rw-r--r--client/src/app/videos/video-watch/video-watch.component.ts6
-rw-r--r--client/src/app/videos/video-watch/webtorrent.service.ts2
2 files changed, 4 insertions, 4 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 32c847785..bcfebf2fd 100644
--- a/client/src/app/videos/video-watch/video-watch.component.ts
+++ b/client/src/app/videos/video-watch/video-watch.component.ts
@@ -21,15 +21,15 @@ import { WebTorrentService } from './webtorrent.service';
21}) 21})
22 22
23export class VideoWatchComponent implements OnInit, OnDestroy { 23export class VideoWatchComponent implements OnInit, OnDestroy {
24 private static LOADTIME_TOO_LONG: number = 20000; 24 private static LOADTIME_TOO_LONG = 20000;
25 25
26 @ViewChild('videoMagnetModal') videoMagnetModal: VideoMagnetComponent; 26 @ViewChild('videoMagnetModal') videoMagnetModal: VideoMagnetComponent;
27 @ViewChild('videoShareModal') videoShareModal: VideoShareComponent; 27 @ViewChild('videoShareModal') videoShareModal: VideoShareComponent;
28 @ViewChild('videoReportModal') videoReportModal: VideoReportComponent; 28 @ViewChild('videoReportModal') videoReportModal: VideoReportComponent;
29 29
30 downloadSpeed: number; 30 downloadSpeed: number;
31 error: boolean = false; 31 error = false;
32 loading: boolean = false; 32 loading = false;
33 numPeers: number; 33 numPeers: number;
34 player: videojs.Player; 34 player: videojs.Player;
35 playerElement: Element; 35 playerElement: Element;
diff --git a/client/src/app/videos/video-watch/webtorrent.service.ts b/client/src/app/videos/video-watch/webtorrent.service.ts
index 630a5c469..8936e7992 100644
--- a/client/src/app/videos/video-watch/webtorrent.service.ts
+++ b/client/src/app/videos/video-watch/webtorrent.service.ts
@@ -1,7 +1,7 @@
1import { Injectable } from '@angular/core'; 1import { Injectable } from '@angular/core';
2import { Subject } from 'rxjs/Subject'; 2import { Subject } from 'rxjs/Subject';
3 3
4declare const WebTorrent; 4import * as WebTorrent from 'webtorrent';
5 5
6@Injectable() 6@Injectable()
7export class WebTorrentService { 7export class WebTorrentService {