mirror of
https://github.com/imputnet/cobalt.git
synced 2026-01-18 12:51:51 +00:00
web: deprecate youtube HLS, enable it only via env variable
Some checks are pending
Some checks are pending
it's now disabled by default because if we ever need HLS for youtube in the future, it'll be managed by the processing instance, not the web client. will probably be removed completely in next major release.
This commit is contained in:
@@ -9,13 +9,17 @@ const getEnv = (_key: string) => {
|
||||
}
|
||||
}
|
||||
|
||||
const getEnvBool = (key: string) => {
|
||||
return getEnv(key) === "true";
|
||||
}
|
||||
|
||||
const variables = {
|
||||
HOST: getEnv('HOST'),
|
||||
PLAUSIBLE_HOST: getEnv('PLAUSIBLE_HOST'),
|
||||
PLAUSIBLE_ENABLED: getEnv('HOST') && getEnv('PLAUSIBLE_HOST'),
|
||||
DEFAULT_API: getEnv('DEFAULT_API'),
|
||||
// temporary variable until webcodecs features are ready for testing
|
||||
ENABLE_WEBCODECS: !!getEnv('ENABLE_WEBCODECS'),
|
||||
ENABLE_WEBCODECS: getEnvBool('ENABLE_WEBCODECS'),
|
||||
ENABLE_DEPRECATED_YOUTUBE_HLS: getEnvBool('ENABLE_DEPRECATED_YOUTUBE_HLS'),
|
||||
}
|
||||
|
||||
const contacts = {
|
||||
|
||||
Reference in New Issue
Block a user