BufferHelper
Static Method Summary
Static Public Methods | ||
public static |
bufferInfo(media: undefined, pos: number, maxHoleDuration: number): BufferInfo |
|
public static |
bufferedInfo(buffered: undefined, pos: number, maxHoleDuration: number): {"len": *, "start": *, "end": *, "nextStart": *} |
|
public static |
getBuffered(media: Bufferable): TimeRanges Safe method to get buffered property. |
|
public static |
isBuffered(media: Bufferable, position: number): boolean Return true if |
Static Public Methods
public static bufferInfo(media: undefined, pos: number, maxHoleDuration: number): BufferInfo source
Return:
BufferInfo |
public static bufferedInfo(buffered: undefined, pos: number, maxHoleDuration: number): {"len": *, "start": *, "end": *, "nextStart": *} source
Return:
{"len": *, "start": *, "end": *, "nextStart": *} |
public static getBuffered(media: Bufferable): TimeRanges source
Safe method to get buffered property. SourceBuffer.buffered may throw if SourceBuffer is removed from it's MediaSource
Params:
Name | Type | Attribute | Description |
media | Bufferable |