UNPKG

@svta/common-media-library

Version:
18 lines 438 B
/** * @internal * * Get byterange from HLS Manifest. * * @param byteRange - Byterange object containning length and offset * @returns string containing the byterange. If byterange is undefined, it returns undefined * * @group CMAF * @alpha */ export function getByterange(byteRange) { if (!byteRange) { return ''; } return `${byteRange.length}@${byteRange.offset}`; } //# sourceMappingURL=getByterange.js.map