@videts/vide / ssai / parseDateRange
Function: parseDateRange()
parseDateRange(
attributes,pdtAnchorMs?):AdBreakMetadata|null
Defined in: ssai/hls-monitor.ts:45
Parse a DATERANGE into an ad break. Returns null if not an ad marker.
Parameters
| Parameter | Type | Description |
|---|---|---|
attributes | Record<string, string> | - |
pdtAnchorMs? | number | The PROGRAM-DATE-TIME epoch (ms) of the first fragment. When provided, START-DATE is converted to a stream-relative offset so it can be compared against currentTime. |
Returns
AdBreakMetadata | null