Constructor
new DashInterstitialParser()
- Source:
Methods
isAlternativeMpd_(region) → {boolean}
Parameters:
- Source:
Returns:
-
Type
-
boolean
isInterstitialRegion(region) → {boolean}
Whether the given DASH region is an interstitial handled by this parser:
an alternative-MPD insert/replace event, or an overlay event.
Parameters:
- Source:
Returns:
-
Type
-
boolean
Parses a DASH interstitial region (alternative MPD or overlay event) into
an interstitial. Returns null if the region is not a valid interstitial.
Callers should gate this with isInterstitialRegion.
Parameters:
- Source:
Returns:
-
Type
-
shaka.extern.AdInterstitial
parseTopLeftSize_(topLeftnon-null, sizenon-null) → {?{topLeft: {x: number, y: number}, size: {x: number, y: number}}}
Parses the integer x/y attributes of TopLeft and Size nodes (used by DASH
overlay events). Returns null if any coordinate is missing or invalid.
Parameters:
- Source:
Returns:
-
Type
-
?{topLeft: {x: number, y: number}, size: {x: number, y: number}}