blob: 0551d942ab5b8abd95ca282730650c82714e47e0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
declare global {
interface Window {
Hls?: any;
}
}
/**
* Base URL for CDN hosting HLS.js files
*/
export const HLSJS_CDN = 'https://js-cdn.music.apple.com/hls.js';
/**
* HLS.js version to load.
*/
export const HLSJS_VERSION = '2.820.0';
/**
* Generate a URL for loading HLS.js.
*/
export function generateHLSJSURL(version?: string): URL {
// FIXME: Add a local storage override for the HLS.js version
version = version ?? HLSJS_VERSION;
return new URL(`${HLSJS_CDN}/${version}/hls.js/hls.js`);
}
|