Holds information about the current buffer level.

interface BufferLevel {
    level: number;
    media: MediaType;
    targetLevel: number;
    type: BufferType;
}

Properties

level: number

The amount of currently buffered data, relative to the current time of the player. Returns null if there is no track for the associated media type.

media: MediaType

The media type the buffer data applies to.

targetLevel: number

The target buffer level the player tries to maintain for the associated media type.

The buffer type the buffer data applies to.