findReplacementTrack
function findReplacementTrack(current, tracks): | MsfCatalogTrack | undefined;Defined in: parse-catalog.ts:233
The track in a newer catalog that replaces current, a track of an older one: a publisher that replaces a track
lists a new name in its place (msf-01 §5.3: a changed track is a new Namespace|Name tuple), as a voice agent does to
interrupt its own reply. undefined while the catalog still lists current’s namespace and name; otherwise the
first track listed with current’s namespace, role and render group, or undefined when there is none (the track
was removed, not replaced).
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
current |
MsfCatalogTrack |
tracks |
readonly MsfCatalogTrack[] |
Returns
Section titled “Returns”| MsfCatalogTrack
| undefined