UNPKG

@svta/common-media-library

Version:
18 lines 699 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.addMetadataToDash = addMetadataToDash; //Add metadata to manifest. //In the future, if any other fields are wanted to be added, they can be added here. function addMetadataToDash(dashManifest, manifest) { if (!manifest.metadata) { manifest.metadata = new Map(); } if (dashManifest.MPD.$ && dashManifest.MPD.$.profiles) { manifest.metadata.set('profiles', dashManifest.MPD.$.profiles); } if (dashManifest.MPD.$ && dashManifest.MPD.$.type) { manifest.metadata.set('type', dashManifest.MPD.$.type); } return manifest; } //# sourceMappingURL=addMetadataToDash.js.map