Usage notes
Use this lower-level hook when you want direct access to the HTMLMediaAdapter but will wire playback through useTimelineMediaSync yourself. For the common case where a single element should drive timeline playback, use useHTMLTimelineMedia.
Signature
useHTMLMediaAdapter(options: UseHTMLMediaAdapterOptions<TMediaElement>): UseHTMLMediaAdapterResultType parameters
| Name | Constraint | Default | Description |
|---|---|---|---|
TMediaElement | HTMLMediaElement | HTMLMediaElement | Native element type held by `options.ref`. |
Parameters
| Name | Type | Description |
|---|---|---|
| options | UseHTMLMediaAdapterOptions<TMediaElement> | React media element ref and source map for the adapter. |
Returns
Adapter readiness and callbacks for the mounted media element.