aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/assets
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/assets')
-rw-r--r--client/src/assets/player/shared/p2p-media-loader/hls-plugin.ts2
-rw-r--r--client/src/assets/player/shared/p2p-media-loader/segment-validator.ts2
-rw-r--r--client/src/assets/player/shared/webtorrent/webtorrent-plugin.ts4
3 files changed, 4 insertions, 4 deletions
diff --git a/client/src/assets/player/shared/p2p-media-loader/hls-plugin.ts b/client/src/assets/player/shared/p2p-media-loader/hls-plugin.ts
index 63f27eecf..d05d6193c 100644
--- a/client/src/assets/player/shared/p2p-media-loader/hls-plugin.ts
+++ b/client/src/assets/player/shared/p2p-media-loader/hls-plugin.ts
@@ -349,7 +349,7 @@ class Html5Hlsjs {
349 } 349 }
350 350
351 private _oneLevelObjClone (obj: { [ id: string ]: any }) { 351 private _oneLevelObjClone (obj: { [ id: string ]: any }) {
352 const result = {} 352 const result: { [id: string]: any } = {}
353 const objKeys = Object.keys(obj) 353 const objKeys = Object.keys(obj)
354 for (let i = 0; i < objKeys.length; i++) { 354 for (let i = 0; i < objKeys.length; i++) {
355 result[objKeys[i]] = obj[objKeys[i]] 355 result[objKeys[i]] = obj[objKeys[i]]
diff --git a/client/src/assets/player/shared/p2p-media-loader/segment-validator.ts b/client/src/assets/player/shared/p2p-media-loader/segment-validator.ts
index 6e9bcf103..44a31bfb4 100644
--- a/client/src/assets/player/shared/p2p-media-loader/segment-validator.ts
+++ b/client/src/assets/player/shared/p2p-media-loader/segment-validator.ts
@@ -79,7 +79,7 @@ function fetchSha256Segments (options: {
79 segmentsSha256Url: string 79 segmentsSha256Url: string
80 authorizationHeader: () => string 80 authorizationHeader: () => string
81 requiresAuth: boolean 81 requiresAuth: boolean
82}) { 82}): Promise<SegmentsJSON> {
83 const { serverUrl, segmentsSha256Url, requiresAuth, authorizationHeader } = options 83 const { serverUrl, segmentsSha256Url, requiresAuth, authorizationHeader } = options
84 84
85 const headers = requiresAuth && isSameOrigin(serverUrl, segmentsSha256Url) 85 const headers = requiresAuth && isSameOrigin(serverUrl, segmentsSha256Url)
diff --git a/client/src/assets/player/shared/webtorrent/webtorrent-plugin.ts b/client/src/assets/player/shared/webtorrent/webtorrent-plugin.ts
index 46d009410..3dde44a60 100644
--- a/client/src/assets/player/shared/webtorrent/webtorrent-plugin.ts
+++ b/client/src/assets/player/shared/webtorrent/webtorrent-plugin.ts
@@ -339,7 +339,7 @@ class WebTorrentPlugin extends Plugin {
339 if (err.message.indexOf('incorrect info hash') !== -1) { 339 if (err.message.indexOf('incorrect info hash') !== -1) {
340 logger.error('Incorrect info hash detected, falling back to torrent file.') 340 logger.error('Incorrect info hash detected, falling back to torrent file.')
341 const newOptions = { forcePlay: true, seek: options.seek } 341 const newOptions = { forcePlay: true, seek: options.seek }
342 return this.addTorrent(this.torrent['xs'], previousVideoFile, newOptions, done) 342 return this.addTorrent((this.torrent as any)['xs'], previousVideoFile, newOptions, done)
343 } 343 }
344 344
345 // Remote instance is down 345 // Remote instance is down
@@ -582,7 +582,7 @@ class WebTorrentPlugin extends Plugin {
582 private stopTorrent (torrent: WebTorrent.Torrent) { 582 private stopTorrent (torrent: WebTorrent.Torrent) {
583 torrent.pause() 583 torrent.pause()
584 // Pause does not remove actual peers (in particular the webseed peer) 584 // Pause does not remove actual peers (in particular the webseed peer)
585 torrent.removePeer(torrent['ws']) 585 torrent.removePeer((torrent as any)['ws'])
586 } 586 }
587 587
588 private renderFileInFakeElement (file: WebTorrent.TorrentFile, delay: number) { 588 private renderFileInFakeElement (file: WebTorrent.TorrentFile, delay: number) {