mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 23:07:06 +00:00
Restore hls.media prop and correct type.
I erroneously removed this property in my last PR, but it's been brought to my attention by another dev. `media` is unset at construction, but is set to an `HTMLMediaElement` when passed via `attachMedia` and cleared to `null` when `detachMedia` is called. The docs appear to imply that this property is meant to be readonly, and that altering it is to be done with the above referenced methods.
This commit is contained in:
Vendored
+10
@@ -1666,6 +1666,16 @@ declare class Hls {
|
||||
* default valus is hls.firstLevel
|
||||
*/
|
||||
startLevel: number;
|
||||
/**
|
||||
* (default: true)
|
||||
* if set to true, start level playlist and first fragments will be loaded automatically, after triggering of Hls.Events.MANIFEST_PARSED event
|
||||
* if set to false, an explicit API call (hls.startLoad(startPosition=-1)) will be needed to start quality level/fragment loading.
|
||||
*/
|
||||
autoStartLoad: boolean;
|
||||
/**
|
||||
* get: Return the bound videoElement from the hls instance
|
||||
*/
|
||||
readonly media?: HTMLVideoElement | null;
|
||||
/**
|
||||
* hls.js config
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user