Socket
Book a DemoInstallSign in
Socket

@svta/cml-dash

Package Overview
Dependencies
Maintainers
0
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@svta/cml-dash

DASH manifest parsing functionality

Source
npmnpm
Version
1.0.1
Version published
Maintainers
0
Created
Source

@svta/cml-dash

DASH manifest parsing functionality.

Installation

npm i @svta/cml-dash

Usage

import { processUriTemplate, parseFrameRate } from "@svta/cml-dash";

// Process URI template
const result = processUriTemplate(
	"http://example.com/$RepresentationID$/$Number$/$SubNumber$/$Bandwidth$/$Time%02d$/$$",
	"rep1", // RepresentationID
	1, // Number
	2, // SubNumber
	3, // Bandwidth
	4 // Time
);

assert(result === "http://example.com/rep1/1/2/3/04/$");

// Parse frame rate
const frameRate = parseFrameRate("24000/1001");
assert(frameRate === 23.976023976023978);

Keywords

Common Media Library

FAQs

Package last updated on 22 Dec 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts