UNPKG

active-switching

Version:

NPAW's SDK for CDN Balancing and P2P

20 lines (19 loc) 532 B
/** * @class * @description This class stores information about a Rendition * @exports Rendition */ import Segment from './Segment'; export default class Rendition { uri: string; bandwidth: number; isAudio: boolean; bandwidthPosition: number; targetDuration: number; private segments; isMaxRendition: boolean; addSegment(uriKey: string, uriValue: any, pos: number): void; getSegment(uri: string): Segment | undefined; getSegmentsSize(): number; getSegments(): Map<string, Segment>; }