aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/videos
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-11-21 17:01:24 +0100
committerChocobozzz <me@florianbigard.com>2019-11-25 10:59:46 +0100
commit5a71acd2547c098657ae6e0e31e0862094585088 (patch)
treeb7d9792bc99f01ef4d1f4c9dc7822a50a48f7d5f /client/src/app/videos
parentd441f2ed78c004e62766394b2437f6089f2b4ca5 (diff)
downloadPeerTube-5a71acd2547c098657ae6e0e31e0862094585088.tar.gz
PeerTube-5a71acd2547c098657ae6e0e31e0862094585088.tar.zst
PeerTube-5a71acd2547c098657ae6e0e31e0862094585088.zip
Disable webtorrent support in client
Diffstat (limited to 'client/src/app/videos')
-rw-r--r--client/src/app/videos/+video-edit/video-update.component.ts2
-rw-r--r--client/src/app/videos/+video-watch/video-watch.component.html4
-rw-r--r--client/src/app/videos/+video-watch/video-watch.component.ts2
3 files changed, 4 insertions, 4 deletions
diff --git a/client/src/app/videos/+video-edit/video-update.component.ts b/client/src/app/videos/+video-edit/video-update.component.ts
index 81c66ff20..6ec187f40 100644
--- a/client/src/app/videos/+video-edit/video-update.component.ts
+++ b/client/src/app/videos/+video-edit/video-update.component.ts
@@ -56,7 +56,7 @@ export class VideoUpdateComponent extends FormReactive implements OnInit {
56 56
57 this.schedulePublicationPossible = this.video.privacy === VideoPrivacy.PRIVATE 57 this.schedulePublicationPossible = this.video.privacy === VideoPrivacy.PRIVATE
58 58
59 const videoFiles = (video as VideoDetails).files 59 const videoFiles = (video as VideoDetails).getFiles()
60 if (videoFiles.length > 1) { // Already transcoded 60 if (videoFiles.length > 1) { // Already transcoded
61 this.waitTranscodingEnabled = false 61 this.waitTranscodingEnabled = false
62 } 62 }
diff --git a/client/src/app/videos/+video-watch/video-watch.component.html b/client/src/app/videos/+video-watch/video-watch.component.html
index ac474b427..5b98a7bd4 100644
--- a/client/src/app/videos/+video-watch/video-watch.component.html
+++ b/client/src/app/videos/+video-watch/video-watch.component.html
@@ -221,7 +221,7 @@
221 </div> 221 </div>
222</div> 222</div>
223 223
224<ng-template [ngIf]="video !== null"> 224<ng-container *ngIf="video !== null">
225 <my-video-support #videoSupportModal [video]="video"></my-video-support> 225 <my-video-support #videoSupportModal [video]="video"></my-video-support>
226 <my-video-share #videoShareModal [video]="video" [videoCaptions]="videoCaptions"></my-video-share> 226 <my-video-share #videoShareModal [video]="video" [videoCaptions]="videoCaptions"></my-video-share>
227</ng-template> 227</ng-container>
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 af4afd456..c78f5b9a2 100644
--- a/client/src/app/videos/+video-watch/video-watch.component.ts
+++ b/client/src/app/videos/+video-watch/video-watch.component.ts
@@ -469,7 +469,7 @@ export class VideoWatchComponent implements OnInit, OnDestroy {
469 segmentsSha256Url: hlsPlaylist.segmentsSha256Url, 469 segmentsSha256Url: hlsPlaylist.segmentsSha256Url,
470 redundancyBaseUrls: hlsPlaylist.redundancies.map(r => r.baseUrl), 470 redundancyBaseUrls: hlsPlaylist.redundancies.map(r => r.baseUrl),
471 trackerAnnounce: this.video.trackerUrls, 471 trackerAnnounce: this.video.trackerUrls,
472 videoFiles: this.video.files 472 videoFiles: hlsPlaylist.files
473 } as P2PMediaLoaderOptions 473 } as P2PMediaLoaderOptions
474 474
475 Object.assign(options, { p2pMediaLoader }) 475 Object.assign(options, { p2pMediaLoader })