aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/extra-utils/videos/streaming-playlists.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-07-16 09:47:51 +0200
committerChocobozzz <me@florianbigard.com>2021-07-20 15:27:18 +0200
commit254d3579f5338f5fd775c17d15cdfc37078bcfb4 (patch)
treeeaeb13fda16c16e98cd6991d202b0ca6a4cbdb63 /shared/extra-utils/videos/streaming-playlists.ts
parent89d241a79c262b9775c233b73cff080043ebb5e6 (diff)
downloadPeerTube-254d3579f5338f5fd775c17d15cdfc37078bcfb4.tar.gz
PeerTube-254d3579f5338f5fd775c17d15cdfc37078bcfb4.tar.zst
PeerTube-254d3579f5338f5fd775c17d15cdfc37078bcfb4.zip
Use an object to represent a server
Diffstat (limited to 'shared/extra-utils/videos/streaming-playlists.ts')
-rw-r--r--shared/extra-utils/videos/streaming-playlists.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/shared/extra-utils/videos/streaming-playlists.ts b/shared/extra-utils/videos/streaming-playlists.ts
index e8fd2f232..002ae08b2 100644
--- a/shared/extra-utils/videos/streaming-playlists.ts
+++ b/shared/extra-utils/videos/streaming-playlists.ts
@@ -2,10 +2,10 @@ import { expect } from 'chai'
2import { sha256 } from '@server/helpers/core-utils' 2import { sha256 } from '@server/helpers/core-utils'
3import { HttpStatusCode } from '@shared/core-utils' 3import { HttpStatusCode } from '@shared/core-utils'
4import { VideoStreamingPlaylist } from '@shared/models' 4import { VideoStreamingPlaylist } from '@shared/models'
5import { ServerInfo } from '../server' 5import { PeerTubeServer } from '../server'
6 6
7async function checkSegmentHash (options: { 7async function checkSegmentHash (options: {
8 server: ServerInfo 8 server: PeerTubeServer
9 baseUrlPlaylist: string 9 baseUrlPlaylist: string
10 baseUrlSegment: string 10 baseUrlSegment: string
11 videoUUID: string 11 videoUUID: string
@@ -36,7 +36,7 @@ async function checkSegmentHash (options: {
36} 36}
37 37
38async function checkLiveSegmentHash (options: { 38async function checkLiveSegmentHash (options: {
39 server: ServerInfo 39 server: PeerTubeServer
40 baseUrlSegment: string 40 baseUrlSegment: string
41 videoUUID: string 41 videoUUID: string
42 segmentName: string 42 segmentName: string
@@ -52,7 +52,7 @@ async function checkLiveSegmentHash (options: {
52} 52}
53 53
54async function checkResolutionsInMasterPlaylist (options: { 54async function checkResolutionsInMasterPlaylist (options: {
55 server: ServerInfo 55 server: PeerTubeServer
56 playlistUrl: string 56 playlistUrl: string
57 resolutions: number[] 57 resolutions: number[]
58}) { 58}) {