Skip to content

Headless playback React

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

usePlayback - 1.52 KB

Basic Usage

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

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