@types/hls.js : Fixing definition of Level interface

This commit is contained in:
Adrián Caballero
2019-01-25 11:20:39 +01:00
parent 7c13736555
commit 4e4892ccd7
+41 -12
View File
@@ -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;
}
/**