Home > hls.js > HlsAssetPlayer

HlsAssetPlayer class

Signature:

export declare class HlsAssetPlayer 

Constructors

Constructor

Modifiers

Description

(constructor)(HlsPlayerClass, userConfig, interstitial, assetItem)

Constructs a new instance of the HlsAssetPlayer class

Properties

Property

Modifiers

Type

Description

assetId

readonly

InterstitialAssetId

assetItem

readonly

InterstitialAssetItem

bufferedEnd

readonly

number

currentTime

readonly

number

destroyed

readonly

boolean

duration

readonly

number

hls

readonly

Hls

interstitial

readonly

InterstitialEvent

interstitialId

readonly

InterstitialId

media

readonly

HTMLMediaElement | null

remaining

readonly

number

timelineOffset

number

tracks

Partial<BufferCodecsData> | null

Methods

Method

Modifiers

Description

attachMedia(data)

destroy()

detachMedia()

off(event, listener, context)

on(event, listener, context)

once(event, listener, context)

pauseBuffering()

resumeBuffering()

toString()

transferMedia()