@moq/msf
v0.1.2
Published
MSF (MOQT Streaming Format) catalog types for MoQ
Readme
@moq/msf
Zod schemas and helpers for the MSF (MOQT Streaming Format) catalog.
This package provides types for decoding the MSF catalog track delivered over moq-lite. It is consumed by @moq/watch when the player is configured with catalogFormat: "msf".
Installation
npm add @moq/msfUsage
import * as Msf from "@moq/msf";
// Fetch and decode a catalog from a moq-lite track
const catalog = await Msf.fetch(track);
if (catalog) {
for (const t of catalog.tracks) {
console.log(t.name, t.role, t.codec);
}
}License
MIT OR Apache-2.0
