import CapLevelController from 'hls.js/src/controller/cap-level-controller.js'CapLevelController
Extends:
Static Member Summary
| Static Public Members | ||
| public static get | 
      
       | 
    |
Static Method Summary
| Static Public Methods | ||
| public static | 
       getMaxLevelByMediaSize(levels: *, width: *, height: *): *  | 
    |
| public static | 
       isLevelAllowed(level: *, restrictedLevels: *[]): *  | 
    |
Constructor Summary
| Public Constructor | ||
| public | 
      
       | 
    |
Member Summary
| Public Members | ||
| public | 
      
       | 
    |
| public | 
       clientRect: *  | 
    |
| public | 
       firstLevel: *  | 
    |
| public | 
       levels: *[]  | 
    |
| public | 
       media: *  | 
    |
| public get | 
       mediaHeight: *  | 
    |
| public get | 
       mediaWidth: *  | 
    |
| public | 
       restrictedLevels: *[]  | 
    |
| public | 
       timer: *  | 
    |
Method Summary
| Public Methods | ||
| public | 
       destroy()  | 
    |
| public | 
      
       | 
    |
| public | 
       getDimensions(): *  | 
    |
| public | 
       getMaxLevel(capLevelIndex: *): *  | 
    |
| public | 
       onBufferCodecs(data: *)  | 
    |
| public | 
       onFpsDropLevelCapping(data: *)  | 
    |
| public | 
       onLevelsUpdated(data: *)  | 
    |
| public | 
       onManifestParsed(data: *)  | 
    |
| public | 
       onMediaAttaching(data: *)  | 
    |
| public | 
      
       | 
    |
| public | 
      
       | 
    |
| public | 
      
       | 
    |
Static Public Members
public static get contentScaleFactor: * source
Static Public Methods
public static getMaxLevelByMediaSize(levels: *, width: *, height: *): * source
Params:
| Name | Type | Attribute | Description | 
| levels | * | ||
| width | * | ||
| height | * | 
Return:
| * | 
public static isLevelAllowed(level: *, restrictedLevels: *[]): * source
Params:
| Name | Type | Attribute | Description | 
| level | * | ||
| restrictedLevels | *[] | 
  | 
      
Return:
| * | 
Public Constructors
public constructor() source
Public Members
public autoLevelCapping: * source
public clientRect: * source
public firstLevel: * source
public levels: *[] source
public media: * source
public get mediaHeight: * source
public get mediaWidth: * source
public restrictedLevels: *[] source
public timer: * source
Public Methods
public destroy() source
public detectPlayerSize() source
public getMaxLevel(capLevelIndex: *): * source
Params:
| Name | Type | Attribute | Description | 
| capLevelIndex | * | 
Return:
| * | 
public onBufferCodecs(data: *) source
Params:
| Name | Type | Attribute | Description | 
| data | * | 
public onFpsDropLevelCapping(data: *) source
Params:
| Name | Type | Attribute | Description | 
| data | * | 
public onLevelsUpdated(data: *) source
Params:
| Name | Type | Attribute | Description | 
| data | * | 
public onManifestParsed(data: *) source
Params:
| Name | Type | Attribute | Description | 
| data | * | 
public onMediaAttaching(data: *) source
Params:
| Name | Type | Attribute | Description | 
| data | * | 
    
  