PeerTube/shared/utils/videos/video-playlists.ts

22 lines
543 B
TypeScript
Raw Normal View History

2019-01-29 08:37:25 +01:00
import { makeRawRequest } from '../requests/requests'
function getPlaylist (url: string, statusCodeExpected = 200) {
return makeRawRequest(url, statusCodeExpected)
}
function getSegment (url: string, statusCodeExpected = 200) {
return makeRawRequest(url, statusCodeExpected)
}
function getSegmentSha256 (url: string, statusCodeExpected = 200) {
return makeRawRequest(url, statusCodeExpected)
}
// ---------------------------------------------------------------------------
export {
getPlaylist,
getSegment,
getSegmentSha256
}