Usage notes
This lower-level options shape is useful when an app wants the underlying MediabunnyAdapter for custom preview controls. The higher-level useMediabunnyTimelineMedia hook adds timeline transport commands on top of this adapter.
Signature
Interface UseMediabunnyAdapterOptionsProperties
| Name | Signature | Description |
|---|---|---|
audio? | audio?: MediabunnyTimelineAudioOptions | Audio scheduling options for source playback. |
audioTrackKinds? | audioTrackKinds?: typeOperator | Track kinds the adapter should treat as audio scheduling sources. Defaults to `["audio"]`. |
canvasRef? | canvasRef?: RefObject<HTMLCanvasElement | null> | Canvas ref that receives decoded visual frames. |
mediabunny | mediabunny: __module | () => Promise<__module> | Mediabunny module instance or lazy browser loader. |
sources | sources: typeOperator | Media sources keyed by the `sourceId` values used by timeline clips. |
visualTrackKinds? | visualTrackKinds?: typeOperator | Track kinds the adapter should treat as visual frame sources. Defaults to `["visual"]`. |