diff options
Diffstat (limited to 'client/src/assets')
5 files changed, 6 insertions, 6 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/settings/settings-dialog.ts b/client/src/assets/player/shared/settings/settings-dialog.ts index 8cd98967f..f5fbbe7ad 100644 --- a/client/src/assets/player/shared/settings/settings-dialog.ts +++ b/client/src/assets/player/shared/settings/settings-dialog.ts | |||
@@ -23,7 +23,7 @@ class SettingsDialog extends Component { | |||
23 | innerHTML: '', | 23 | innerHTML: '', |
24 | tabIndex: -1 | 24 | tabIndex: -1 |
25 | }, { | 25 | }, { |
26 | role: 'dialog', | 26 | 'role': 'dialog', |
27 | 'aria-labelledby': dialogLabelId, | 27 | 'aria-labelledby': dialogLabelId, |
28 | 'aria-describedby': dialogDescriptionId | 28 | 'aria-describedby': dialogDescriptionId |
29 | }) | 29 | }) |
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) { |
diff --git a/client/src/assets/player/utils.ts b/client/src/assets/player/utils.ts index ffbe64408..cc303b80b 100644 --- a/client/src/assets/player/utils.ts +++ b/client/src/assets/player/utils.ts | |||
@@ -32,7 +32,7 @@ function isSafari () { | |||
32 | 32 | ||
33 | // https://github.com/danrevah/ngx-pipes/blob/master/src/pipes/math/bytes.ts | 33 | // https://github.com/danrevah/ngx-pipes/blob/master/src/pipes/math/bytes.ts |
34 | // Don't import all Angular stuff, just copy the code with shame | 34 | // Don't import all Angular stuff, just copy the code with shame |
35 | const dictionaryBytes: Array<{ max: number, type: string }> = [ | 35 | const dictionaryBytes: { max: number, type: string }[] = [ |
36 | { max: 1024, type: 'B' }, | 36 | { max: 1024, type: 'B' }, |
37 | { max: 1048576, type: 'KB' }, | 37 | { max: 1048576, type: 'KB' }, |
38 | { max: 1073741824, type: 'MB' }, | 38 | { max: 1073741824, type: 'MB' }, |