@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
| Parameter | Type |
|---|---|
url | string |
type? | string |
Returns
boolean
load()
load(
url,mediaElement):void
Defined in: types.ts:273
Load the source into the media element.
Parameters
| Parameter | Type |
|---|---|
url | string |
mediaElement | MediaElement |
Returns
void
unload()
unload(
mediaElement):void
Defined in: types.ts:275
Unload the source and clean up.
Parameters
| Parameter | Type |
|---|---|
mediaElement | MediaElement |
Returns
void