mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-03 22:37:03 +00:00
@types/hls.js : Fixing definition of Level interface
This commit is contained in:
Vendored
+41
-12
@@ -2,6 +2,7 @@
|
||||
// Project: https://github.com/video-dev/hls.js
|
||||
// Definitions by: John G. Gainfort, Jr. <https://github.com/jgainfort>
|
||||
// Johan Brook <https://github.com/brookback>
|
||||
// Adrián Caballero <https://github.com/adripanico>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.4
|
||||
|
||||
@@ -189,33 +190,61 @@ declare namespace Hls {
|
||||
*/
|
||||
interface Level {
|
||||
/**
|
||||
* level url. might contain sever items if failover/redundant streams are found in the manifest
|
||||
* attribute list
|
||||
*/
|
||||
url: string[];
|
||||
attrs: Array<{[key: string]: string}>;
|
||||
/**
|
||||
* audio codec
|
||||
*/
|
||||
audioCodec: string;
|
||||
/**
|
||||
* level bitrate
|
||||
*/
|
||||
bitrate: number;
|
||||
/**
|
||||
* level name
|
||||
* level details
|
||||
*/
|
||||
name: string;
|
||||
details?: LevelDetails;
|
||||
/**
|
||||
* used codecs
|
||||
* whether there is any error on the fragment
|
||||
*/
|
||||
codecs: string;
|
||||
/**
|
||||
* video width
|
||||
*/
|
||||
width: number;
|
||||
fragmentError?: boolean;
|
||||
/**
|
||||
* video height
|
||||
*/
|
||||
height: number;
|
||||
/**
|
||||
* level details
|
||||
* index of the level
|
||||
*/
|
||||
details: LevelDetails;
|
||||
level?: number;
|
||||
/**
|
||||
* error code
|
||||
*/
|
||||
loadError: number;
|
||||
/**
|
||||
* level name
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* array of unrecognized codecs
|
||||
*/
|
||||
unkownCodecs: string[];
|
||||
/**
|
||||
* level url. might contain sever items if failover/redundant streams are found in the manifest
|
||||
*/
|
||||
url: string[];
|
||||
/**
|
||||
* index of current url from url[] array
|
||||
*/
|
||||
urlId: number;
|
||||
/**
|
||||
* video codec
|
||||
*/
|
||||
videoCodec: string;
|
||||
/**
|
||||
* video width
|
||||
*/
|
||||
width: number;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user