CommonCoreConfig: {
    cachedSegmentExpiration?: number;
    cachedSegmentsCount: number;
}

Represents the configuration for the Core functionality that is common to all streams.

Type declaration

  • OptionalcachedSegmentExpiration?: number

    Time after which a cached segment expires, in seconds. If set to undefined, the cacheSegmentExpiration is disabled for VOD streams, and a default value (20 minutes) is used for live streams.

    cachedSegmentExpiration: undefined
    
  • cachedSegmentsCount: number

    Maximum number of segments to store in the cache. Has to be less then httpDownloadTimeWindow and p2pDownloadTimeWindow. If set to 0, the cache is unlimited.

    cachedSegmentsCount: 0