Files
MickaelK ad1af48fc1 feature (video): improve ux for video player
we used to have tons of legacy stuff coming from the very first react
client that got migrated over to the vanilla js one so we could finally
remove the dirty tricks that made the first react client not great
2026-07-02 00:28:58 +10:00

11 lines
356 B
JavaScript

export default function (mime, url, transcoderEnabled = {{ .enabled }}) {
if (!transcoderEnabled) return [[mime, url]];
{{- range $item := splitList "," .blacklist }}
if (mime == "{{ $item | trim }}") return [[mime, url]];
{{- end }}
return [
[ "application/x-mpegURL", url + "&transcode=hls" ],
[ mime, url ],
];
}