Skip to content

@videts/vide


@videts/vide / index / SourceHandler

Interface: SourceHandler

Defined in: types.ts:269

Methods

canHandle()

canHandle(url, type?): boolean

Defined in: types.ts:271

Whether this handler can process the given URL/type.

Parameters

ParameterType
urlstring
type?string

Returns

boolean


load()

load(url, mediaElement): void

Defined in: types.ts:273

Load the source into the media element.

Parameters

ParameterType
urlstring
mediaElementMediaElement

Returns

void


unload()

unload(mediaElement): void

Defined in: types.ts:275

Unload the source and clean up.

Parameters

ParameterType
mediaElementMediaElement

Returns

void