Skip to content

@videts/vide


@videts/vide / index / SourceHandler

Interface: SourceHandler

Defined in: types.ts:238

Methods

canHandle()

canHandle(url, type?): boolean

Defined in: types.ts:240

Whether this handler can process the given URL/type.

Parameters

url

string

type?

string

Returns

boolean


load()

load(url, mediaElement): void

Defined in: types.ts:242

Load the source into the media element.

Parameters

url

string

mediaElement

MediaElement

Returns

void


unload()

unload(mediaElement): void

Defined in: types.ts:244

Unload the source and clean up.

Parameters

mediaElement

MediaElement

Returns

void