Add CMAF format and CMAF/init segment support to HLS muxer

This commit is contained in:
Vanilagy
2026-03-30 17:06:57 +02:00
parent 7b70756961
commit 3bcbcc13f0
16 changed files with 766 additions and 178 deletions
+8
View File
@@ -1150,3 +1150,11 @@ export const rejectAfter = (ms: number, message = 'Promise rejected') => {
setTimeout(() => reject(new Error(message)), ms);
});
};
export const toArray = <T>(x: T | T[]) => {
if (Array.isArray(x)) {
return x;
} else {
return [x];
}
};