Skip to content

Headless playback Preact ​

The @headlessplayback/preact adapter is a wrapper around the core API.

usePlayback - 2.13 KB ​

Basic Usage ​

ts
function usePlayback(arg: { id: string }): {
  activate
  playbackActions
  playbackState
}

usePlayback.use(plugin, {
  /* Your plugin config */
})